onnx / tutorials

Tutorials for creating and using ONNX models
Apache License 2.0
3.4k stars 631 forks source link

Export ONNX model with tensor shapes included #234

Closed gyenesvi closed 2 years ago

gyenesvi commented 3 years ago

Ask a Question

Question

Is it possible to export ONNX models with tensor shapes included so that shape inference need not be run when importing a model? How to do that for example from PyTorch?

Further information

Notes

It would also be a possible solution if a shape inference function could be injected into the Python shape inference code (not C++).

jcwchen commented 3 years ago

Should be solved by https://github.com/onnx/onnx/issues/3281. Thanks