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

Version confusion when ONNC compile ONNX models #176

Open
wang-y-z opened this issue May 13, 2020 · 0 comments
Open

Version confusion when ONNC compile ONNX models #176

wang-y-z opened this issue May 13, 2020 · 0 comments

Comments

@wang-y-z
Copy link

Background
When I compile shufflenetv2.onnx model(format ONNX v4/ torch1.2/ ai.onnx v8) in the newest docker supported by ONNC (1.3.0), come out the Fatal message:
Fatal:Cannot inference shape of this onnx model, got exception from ONNX: Your model ir_version is higher than the checker's
And I check /models/ in ONNC docker(onnc-community:1.3.0)
image
all the models built by:
format ONNX v3 producer pytorch 1.2 imports ai.onnx v8
image

My questions:
1: How to export onnx model with (v3, 1.2, v8) by pytorch ?
(1) I have tried a lot and get this result:(use torch.onnx.export)

pytorch format ONNX ir_version producer pytorch imports ai.onnx
1.4 v4 1.3 v8~
1.2 v4 - v8~
1.1 v4 - v9~
1.0 v3 0.4 v9~
0.4 v3 0.3 v6~

It seems that ONNC 1.3.0 only support ir_version v3.
So how to export onnx v3 with producer 1.2 ? torch.onnx.export-source code
image

Can you share the script which is to export ONNX(v3,1.2,v8) or can you package the environment into a docker and share it please?

(2) The new ONNX model has achieved v6, can anybody share the develop plan for the ir_version please?

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

No branches or pull requests

1 participant