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

Fix op_pad signature #34

Closed xsacha closed 2 years ago

xsacha commented 3 years ago

When using torch.constant_pad_nd, the conversion gives:

x = getattr(self, 'op_' + op_type.lower())(*inputs, **attrs) TypeError: op_pad() got multiple values for argument 'mode'

I found the order appears to be incorrect in the signature