Skip to content

Commit 872a96b

Browse files
authored
Merge pull request #1843 from fatcat-z/fix_ci_issue
Specify the version scope of tensorflow-text and numpy.
2 parents 0da3c78 + ae4ca68 commit 872a96b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

ci_build/azure_pipelines/templates/keras2onnx_application_tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ steps:
4545
$(INSTALL_TRANSFORMERS)
4646
pip install keras-self-attention
4747
pip install pytest pytest-cov pytest-runner
48+
pip install numpy==1.19
4849
displayName: 'Install dependencies'
4950
5051
- script: |
@@ -101,6 +102,7 @@ steps:
101102
%INSTALL_TRANSFORMERS%
102103
pip install keras-self-attention
103104
pip install pytest pytest-cov pytest-runner
105+
pip install numpy==1.19
104106
displayName: 'Install dependencies'
105107
106108
- script: |

ci_build/azure_pipelines/templates/keras2onnx_unit_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ steps:
3232
pip install -r requirements-dev.txt
3333
pip install pytest pytest-cov pytest-runner
3434
$(INSTALL_ORT)
35+
pip install numpy==1.19
3536
displayName: 'Install dependencies'
3637
3738
- script: |
@@ -77,6 +78,7 @@ steps:
7778
pip install git+https://github.com/microsoft/onnxconverter-common
7879
pip install pytest pytest-cov pytest-runner
7980
%INSTALL_ORT%
81+
pip install numpy==1.19
8082
displayName: 'Install dependencies'
8183
8284
- script: |

ci_build/azure_pipelines/templates/setup.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ steps:
3939
fi
4040
if [[ $CI_TF_VERSION == 2.5* ]] ;
4141
then
42-
pip install tensorflow-text>=2.5
42+
pip install "tensorflow-text>=2.5,<2.6"
4343
fi
4444
if [[ $CI_TF_VERSION == 2.6* ]] ;
4545
then
46-
pip install tensorflow-text>=2.6
46+
pip install "tensorflow-text>=2.6,<2.7"
4747
fi
4848
if [[ $CI_TF_VERSION == 2.7* ]] ;
4949
then
50-
pip install tensorflow-text>=2.6
50+
pip install "tensorflow-text>=2.7,<2.8"
5151
fi
5252
fi
5353

0 commit comments

Comments
 (0)