AxisCommunications / onnx-to-keras

Convert onnx models exported from pytorch to tensorflow keras models with focus on performace and highleve compatibility.
MIT License
25 stars 13 forks source link

AttributeError: 'KerasTensor' object has no attribute 'data_format' #18

Closed xsacha closed 3 years ago

xsacha commented 3 years ago
    def op_softmax(self, x, axis):
        out = self.keras.activations.softmax(x, axis=axis)
        out.data_format = x.data_format
                           ^
AttributeError: 'KerasTensor' object has no attribute 'data_format'
xsacha commented 3 years ago

This error was due to the wrong data_format from a previous OP. No problem now.