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

[Relay][Frontend][Onnx] Fix GEMM converter when C is not a parameter. #7509

Merged
merged 3 commits into from
Feb 24, 2021

Conversation

jwfromm
Copy link
Contributor

@jwfromm jwfromm commented Feb 23, 2021

The change made to the Onnx gemm converter in #7489 assumes that the value of C will always be a parameter. When it is a constant or an expression, the special case handling will fail. This very tiny PR makes the handling of C more general and adds test cases that would otherwise fail.

@jwfromm
Copy link
Contributor Author

jwfromm commented Feb 23, 2021

@mbrookhart @xutianming @masahi can one of you take a look at this PR?

Copy link
Contributor

@mbrookhart mbrookhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@masahi masahi merged commit d425c14 into apache:main Feb 24, 2021
Lokiiiiii pushed a commit to Lokiiiiii/tvm that referenced this pull request Mar 2, 2021
…apache#7509)

* Fix onnx gemm with non parameter C.

* Add gemm tests for C.

* Fix formatting.
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Mar 2, 2021
…apache#7509)

* Fix onnx gemm with non parameter C.

* Add gemm tests for C.

* Fix formatting.
@jwfromm jwfromm deleted the onnx_gemm_fix branch April 12, 2023 15:55
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 this pull request may close these issues.

3 participants