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/03/22 21:13:48 UTC

[GitHub] [tvm] mbrookhart commented on a change in pull request #7720: [ONNX] Onnx node tests

mbrookhart commented on a change in pull request #7720:
URL: https://github.com/apache/tvm/pull/7720#discussion_r599079051



##########
File path: python/tvm/relay/frontend/onnx.py
##########
@@ -444,9 +448,15 @@ class ConvTranspose(OnnxOpConverter):
     @classmethod
     def _impl_v1(cls, inputs, attr, params):
         # get number of channels
-        channels = infer_channels(inputs[1], True)
+        out_type = infer_type(inputs[1])
+        out_shapes = [get_const_tuple(out_type.checked_type.shape)]
+        channels = out_shapes[0][1]

Review comment:
       ONNX always assumes NCHW




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

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