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/08/02 19:57:10 UTC
[GitHub] [tvm] masahi commented on a change in pull request #8622: [Fix][Frontend][TOPI] minor bugs
masahi commented on a change in pull request #8622:
URL: https://github.com/apache/tvm/pull/8622#discussion_r681232847
##########
File path: python/tvm/relay/frontend/pytorch.py
##########
@@ -1445,7 +1445,7 @@ def linear(self, inputs, input_types):
# 0 - input
# 1 - weight
bias = inputs[2]
- mm_out = self.matmul(inputs[:2], input_types[:2])
+ mm_out = self.matmul([inputs[0], _op.transpose(inputs[1], axes=(1, 0))], input_types[:2])
Review comment:
We can use `_op.nn.dense` without transposing its second input. Also see https://discuss.tvm.apache.org/t/pytorch-unable-to-import-a-simple-torch-nn-linear-to-relay/10383/4
--
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