File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
ci_build/azure_pipelines/templates Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 20
20
conda config --set always_yes yes --set changeps1 no
21
21
pip install $(ONNX_PATH)
22
22
pip uninstall -y protobuf
23
- pip install protobuf==3.20.1
23
+ pip install " protobuf<4.21.0"
24
24
pip install h5py==2.9.0
25
25
pip install parameterized
26
26
$(INSTALL_TENSORFLOW)
83
83
echo Test numpy installation... && python -c "import numpy"
84
84
pip install %ONNX_PATH%
85
85
pip uninstall -y protobuf
86
- pip install protobuf==3.20.1
86
+ pip install " protobuf<4.21.0"
87
87
pip install h5py==2.9.0
88
88
pip install parameterized
89
89
%INSTALL_TENSORFLOW%
Original file line number Diff line number Diff line change 20
20
conda config --set always_yes yes --set changeps1 no
21
21
pip install $(ONNX_PATH)
22
22
pip uninstall -y protobuf
23
- pip install protobuf==3.20.1
23
+ pip install " protobuf<4.21.0"
24
24
pip install h5py==2.9.0
25
25
pip install parameterized
26
26
pip install $(TENSORFLOW_PATH)
73
73
echo Test numpy installation... && python -c "import numpy"
74
74
pip install %ONNX_PATH%
75
75
pip uninstall -y protobuf
76
- pip install protobuf==3.20.1
76
+ pip install " protobuf<4.21.0"
77
77
pip install h5py==2.9.0
78
78
pip install parameterized
79
79
pip install %TENSORFLOW_PATH%
Original file line number Diff line number Diff line change 6
6
pip install pytest pytest-cov pytest-runner coverage graphviz requests pyyaml pillow pandas parameterized
7
7
pip install $(CI_PIP_TF_NAME) $(CI_PIP_ONNX_NAME)
8
8
9
+ # protobuf release version 4.21.0 has some Python changes which is not compatible with tensorflow so far.
10
+ pip uninstall -y protobuf
11
+ pip install "protobuf<4.21.0"
12
+
9
13
# TF < 2.7 reuires numpy <= 1.19, but onnxruntime >= 1.11 requires numpy >= 1.21
10
14
if [[ $CI_TF_VERSION < 2.7 ]] && [[ $CI_ONNX_BACKEND == "onnxruntime" ]] ;
11
15
then
You can’t perform that action at this time.
0 commit comments