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] Small bug fix for Conv1D imports. #5995

Merged
merged 3 commits into from
Jul 6, 2020

Conversation

jwfromm
Copy link
Contributor

@jwfromm jwfromm commented Jul 5, 2020

When importing a Conv1D operation with VALID padding, a Relay error would be produced due to the onnx frontend generating a tuple with only one element instead of two as expected. Adding get_pad_tuple1d to the make_conv1d call covers this and is more robust than the previous approach.

@jwfromm
Copy link
Contributor Author

jwfromm commented Jul 5, 2020

@masahi, @areusch, @tmoreau89 can one of you guys take a look at this quick PR?

Copy link
Contributor

@tmoreau89 tmoreau89 left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

Copy link
Member

@junrushao junrushao 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 a64feed into apache:master Jul 6, 2020
@masahi
Copy link
Member

masahi commented Jul 6, 2020

Thanks @jwfromm @tmoreau89 @junrushao1994

@jwfromm jwfromm deleted the import_error branch July 6, 2020 15:17
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Jul 14, 2020
* Fix autopad bug in onnx importer for conv1d.

* Fix output shape in test.

* Undo commented out lines oops.
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Jul 14, 2020
* Fix autopad bug in onnx importer for conv1d.

* Fix output shape in test.

* Undo commented out lines oops.
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.

4 participants