You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ONNX exporter depends on extra Python packages: onnx, onnxscript and onnxruntime.
But in tutorial there are only onnx and onnxscript.
May be in some versions onnxruntime installing implicitly, but in my environment it does not.
I think we need explicit list of dependencies in text and in code pip install onnx onnxscript onnxruntime
Environment
Platform: windows
Cuda: No
python: 3.11
Pytorch: 2.3.0+cpu
onnxscript: 0.1.0.dev20240903
onnxruntime: 1.19.0
It does look like you need to run pip install onnx onnxscript onnxruntime. My guess is that this was for some reason omitted by the author (@thiagocrepaldi) because for the Sphinx build we install through requirements.txt. @labintsev do you want to submit a PR with this change?
Link
https://pytorch.org/tutorials/beginner/onnx/intro_onnx.html#dependencies
Bug
The ONNX exporter depends on extra Python packages: onnx, onnxscript and onnxruntime.
But in tutorial there are only onnx and onnxscript.
May be in some versions
onnxruntime
installing implicitly, but in my environment it does not.I think we need explicit list of dependencies in text and in code
pip install onnx onnxscript onnxruntime
Environment
Platform: windows
Cuda: No
python: 3.11
Pytorch: 2.3.0+cpu
onnxscript: 0.1.0.dev20240903
onnxruntime: 1.19.0
cc @xadupre
The text was updated successfully, but these errors were encountered: