Skip to content

[ONNX] Make input shape immutable#7844

Merged
mbrookhart merged 1 commit intoapache:mainfrom
ymwangg:fix-onnx
Apr 14, 2021
Merged

[ONNX] Make input shape immutable#7844
mbrookhart merged 1 commit intoapache:mainfrom
ymwangg:fix-onnx

Conversation

@ymwangg
Copy link
Copy Markdown
Contributor

@ymwangg ymwangg commented Apr 14, 2021

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor

Thanks @ymwangg!

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
Co-authored-by: Yanming Wang <yanmwang@amazon.com>
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
Co-authored-by: Yanming Wang <yanmwang@amazon.com>
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
Co-authored-by: Yanming Wang <yanmwang@amazon.com>
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request May 11, 2021
Co-authored-by: Yanming Wang <yanmwang@amazon.com>
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