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

Fix bug in ONNX importer #3084

Merged
merged 2 commits into from
Apr 29, 2019
Merged

Fix bug in ONNX importer #3084

merged 2 commits into from
Apr 29, 2019

Conversation

jroesch
Copy link
Member

@jroesch jroesch commented Apr 24, 2019

Fixes small bug in the ONNX importer that is very confusing, fix for #3079.

The importer previously would default to scalars when input shapes were not provided. This instead requires the user to explicitly provide all input shapes.

@jroesch
Copy link
Member Author

jroesch commented Apr 24, 2019

cc @zhreshold

Copy link
Member

@zhreshold zhreshold left a comment

Choose a reason for hiding this comment

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

By looking at the failure tests, does requirement of shapes from input required when converting models? If not, we need to bypass these.

@tqchen
Copy link
Member

tqchen commented Apr 25, 2019

@jroesch @zhreshold please look into the CI case and decide an actionable item to move forward

@tqchen tqchen added the status: need update need update based on feedbacks label Apr 25, 2019
@jroesch
Copy link
Member Author

jroesch commented Apr 27, 2019

It looks like there was previously a bug in the old test case that was being silently ignored due the previous default. If there were no inputs in the constant fill case we still added an input to the graph even though we didn't pass one. The other fix would be we intended to pass an argument and to explicitly pass one.

@tqchen
Copy link
Member

tqchen commented Apr 27, 2019

Copy link
Member

@zhreshold zhreshold left a comment

Choose a reason for hiding this comment

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

lgtm

@tqchen tqchen added status: accepted and removed status: need update need update based on feedbacks labels Apr 29, 2019
@tqchen tqchen merged commit ba6f194 into apache:master Apr 29, 2019
@tqchen
Copy link
Member

tqchen commented Apr 29, 2019

Thanks @jroesch @zhreshold @yzhliu , this is now merged

wweic pushed a commit to wweic/tvm that referenced this pull request May 13, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request May 13, 2019
@jroesch jroesch deleted the onnx-fix branch February 4, 2021 04:39
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