Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG][FRONTEND] Pytorch Importer mm #8392

Closed
tqchen opened this issue Jul 2, 2021 · 6 comments · Fixed by #8397
Closed

[BUG][FRONTEND] Pytorch Importer mm #8392

tqchen opened this issue Jul 2, 2021 · 6 comments · Fixed by #8397
Assignees

Comments

@tqchen
Copy link
Member

tqchen commented Jul 2, 2021

Caught this when reading through the code. Dense requires transposition.

https://github.com/apache/tvm/blob/main/python/tvm/relay/frontend/pytorch.py#L1880

@tqchen
Copy link
Member Author

tqchen commented Jul 2, 2021

cc @masahi

@tqchen
Copy link
Member Author

tqchen commented Jul 3, 2021

@tqchen
Copy link
Member Author

tqchen commented Jul 3, 2021

cc @jcf94 @comaniac

@masahi
Copy link
Member

masahi commented Jul 3, 2021

Yeah torch.mm expects non-transposed input, so our converter doesn't seem correct. https://pytorch.org/docs/stable/generated/torch.mm.html

I wonder why the test cases didn't catch this...

@masahi
Copy link
Member

masahi commented Jul 3, 2021

Sorry for the confusion, this converter is not used anywhere. Removed in #8397

@jcf94
Copy link
Contributor

jcf94 commented Jul 5, 2021

Sorry for my late reply, what's the latest update to this bug?
The nn.matmul should currently only be enabled in TensorFlow frontend with extra parameters.

Ok, seems it has been fixed in #8397 ? Thanks @masahi .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants