Skip to content

Commit ba81503

Browse files
mszhanyiYi Zhang
authored and
Ted Themistokleous
committed
Pin Onnx Version (microsoft#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 50cd2e8 commit ba81503

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
@@ -2087,7 +2087,9 @@ def run_onnxruntime_tests(args, source_dir, ctest_path, build_dir, configs):
20872087
run_subprocess(
20882088
[sys.executable, "-m", "pip", "uninstall", "--yes", "onnx"], cwd=cwd, dll_path=dll_path
20892089
)
2090-
run_subprocess([sys.executable, "-m", "pip", "install", "-q", "onnx"], cwd=cwd, dll_path=dll_path)
2090+
run_subprocess(
2091+
[sys.executable, "-m", "pip", "install", "-q", "onnx==1.15.0"], cwd=cwd, dll_path=dll_path
2092+
)
20912093
run_subprocess([sys.executable, "onnxruntime_test_python_iobinding.py"], cwd=cwd, dll_path=dll_path)
20922094

20932095
if args.use_cuda:

0 commit comments

Comments
 (0)