masahi commented on a change in pull request #9028:
URL: https://github.com/apache/tvm/pull/9028#discussion_r710634533
##########
File path: python/tvm/relay/frontend/onnx.py
##########
@@ -3176,7 +3176,7 @@ def _impl_v10(cls, inputs, attr, params):
@classmethod
def _impl_v13(cls, inputs, attr, params):
data, scale, zp = inputs
- axis = attr.get("axis", 1)
+ axis = attr.get("axis", 0)
Review comment:
I've also hit this issue when I was testing a quantized tflite model,
the change below worked (as @mbrookhart suggested)
https://github.com/masahi/tvm/blob/e649837fb4f74abbbb770e0a3f6bf175f407cc7d/python/tvm/relay/frontend/onnx.py#L3199-L3202
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]