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/04/14 07:02:58 UTC

[GitHub] [tvm] yuchaoli commented on a change in pull request #7845: Fix PyTorch matmul conversion when given (2-dim, N-dim) input pair

yuchaoli commented on a change in pull request #7845:
URL: https://github.com/apache/tvm/pull/7845#discussion_r612988061



##########
File path: python/tvm/relay/frontend/pytorch.py
##########
@@ -1607,6 +1607,12 @@ def matmul(self, inputs, input_types):
                 return _op.reshape(output, [*a_shape[:-2], a_shape[-2], b_shape[-1]])
             return output
 
+        # Reshape a or b into a 2 dimensional tensor

Review comment:
       Done. To avoid generating redundant reshape/transpose op, I handle the dim of b independently.




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