mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Updated PyTorch ONNX exporter (markdown)
@ -131,14 +131,14 @@ You should be able to run these commands successfully:
|
||||
|
||||
```sh
|
||||
python setup.py develop
|
||||
python test/onnx/test_pytorch_onnx_onnxruntime.py TestONNXRuntime_opset10.test_arithmetic_prim_long
|
||||
pytest -svk test_arithmetic_prim_long test/onnx/test_pytorch_onnx_onnxruntime.py
|
||||
```
|
||||
|
||||
And this should fail:
|
||||
|
||||
```sh
|
||||
echo "assert False" >> torch/onnx/utils.py
|
||||
python test/onnx/test_pytorch_onnx_onnxruntime.py TestONNXRuntime_opset10.test_arithmetic_prim_long
|
||||
pytest -svk test_arithmetic_prim_long test/onnx/test_pytorch_onnx_onnxruntime.py
|
||||
git restore torch/onnx/utils.py
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user