Skip to content

Commit 5ac3b6f

Browse files
mszhanyiYi Zhang
authored and
rachguo
committed
Pin Onnx Version (#20073)
### Description 1. change in build.py is to fix DML exception (https://dev.azure.com/onnxruntime/onnxruntime/_build?definitionId=10&_a=summary) 2. change in requirements.txt is to fix exception in python packaging pipeline. https://dev.azure.com/aiinfra/Lotus/_build/results?buildId=430433&view=results ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> --------- Co-authored-by: Yi Zhang <[email protected]>
1 parent ed4edfe commit 5ac3b6f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
onnx
2-
pytest
1+
onnx==1.15.0
2+
pytest

tools/ci_build/build.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2017,7 +2017,9 @@ def run_onnxruntime_tests(args, source_dir, ctest_path, build_dir, configs):
20172017
run_subprocess(
20182018
[sys.executable, "-m", "pip", "uninstall", "--yes", "onnx"], cwd=cwd, dll_path=dll_path
20192019
)
2020-
run_subprocess([sys.executable, "-m", "pip", "install", "-q", "onnx"], cwd=cwd, dll_path=dll_path)
2020+
run_subprocess(
2021+
[sys.executable, "-m", "pip", "install", "-q", "onnx==1.15.0"], cwd=cwd, dll_path=dll_path
2022+
)
20212023
run_subprocess([sys.executable, "onnxruntime_test_python_iobinding.py"], cwd=cwd, dll_path=dll_path)
20222024

20232025
if args.use_cuda:

0 commit comments

Comments
 (0)