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 2022/01/25 07:17:13 UTC

[GitHub] [tvm] FZYUAN-1 commented on a change in pull request #10047: [Relay] QLinearMatMul allows 1D weight_scale, weight_zero_point inputs

FZYUAN-1 commented on a change in pull request #10047:
URL: https://github.com/apache/tvm/pull/10047#discussion_r791416788



##########
File path: python/tvm/relay/frontend/onnx.py
##########
@@ -3804,10 +3804,13 @@ def _impl_v10(cls, inputs, attr, params):
         #
         # This function attempts to present 'x' in a form that meets both of those
         # requirements.
-        def try_resolve_to_const_scalar(x, dtype_override=None):
+        def try_resolve_to_const(x, dtype_override=None):
             x2 = try_resolve_var_to_const(x, params)
-            x3 = ensure_scalar_shape(x2)
-
+            num_elem = np.prod(infer_shape(x))
+            if num_elem == 1:

Review comment:
       Thanks, done




-- 
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