mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Updated PyTorch ONNX exporter (markdown)
@ -106,11 +106,7 @@ NOTE: [GitLens](https://gitlens.amod.io/)'s interactive rebase feature comes in
|
||||
#### ONNX and ONNX Runtime
|
||||
|
||||
```sh
|
||||
# install a version of protobuf compatible with ONNX submodule
|
||||
conda install -c conda-forge \
|
||||
protobuf=$(cat third_party/onnx/requirements-release.txt | grep protobuf | awk '{print $3}') \
|
||||
python-flatbuffers
|
||||
pip install onnxruntime onnx==$(cat third_party/onnx/VERSION_NUMBER)
|
||||
pip install onnxruntime onnx
|
||||
```
|
||||
|
||||
> ONNX and ONNX Runtime are also available from conda-forge, but they depend on a version of protobuf that's newer than
|
||||
|
Reference in New Issue
Block a user