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

[ONNX] Make input shape immutable #7844

Merged
merged 1 commit into from
Apr 14, 2021
Merged

[ONNX] Make input shape immutable #7844

merged 1 commit into from
Apr 14, 2021

Conversation

ymwangg
Copy link
Contributor

@ymwangg ymwangg commented Apr 14, 2021

I noticed the input shape can be mutated by relay.frontend.from_onnx.

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, thanks for noticing!

I think it's probably one of those cases where jumping back and forth between python and C++ can make it hard to remember where you get a copy and where you get a reference.

@mbrookhart
Copy link
Contributor

Thanks @ymwangg!

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants