File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
ci_build/azure_pipelines/templates Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 19
19
python -m pip install --upgrade pip
20
20
conda config --set always_yes yes --set changeps1 no
21
21
pip install $(ONNX_PATH)
22
+ pip uninstall -y protobuf
23
+ pip install "protobuf<4.21.0"
22
24
pip install h5py==2.9.0
23
25
pip install parameterized
24
26
$(INSTALL_TENSORFLOW)
81
83
echo Test numpy installation... && python -c "import numpy"
82
84
pip install %ONNX_PATH%
83
85
pip uninstall -y protobuf
84
- pip install protobuf
86
+ pip install " protobuf<4.21.0"
85
87
pip install h5py==2.9.0
86
88
pip install parameterized
87
89
%INSTALL_TENSORFLOW%
Original file line number Diff line number Diff line change 19
19
python -m pip install --upgrade pip
20
20
conda config --set always_yes yes --set changeps1 no
21
21
pip install $(ONNX_PATH)
22
+ pip uninstall -y protobuf
23
+ pip install "protobuf<4.21.0"
22
24
pip install h5py==2.9.0
23
25
pip install parameterized
24
26
pip install $(TENSORFLOW_PATH)
71
73
echo Test numpy installation... && python -c "import numpy"
72
74
pip install %ONNX_PATH%
73
75
pip uninstall -y protobuf
74
- pip install protobuf
76
+ pip install " protobuf<4.21.0"
75
77
pip install h5py==2.9.0
76
78
pip install parameterized
77
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