You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/09/17 01:21:35 UTC

[GitHub] [tvm] masahi commented on a change in pull request #9028: [ONNX][#8838] QLinearSigmoid contrib op and Bug Fix for DequantizeLinear

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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org