File tree Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,10 @@ runs:
24
24
python -m pip install --upgrade pip
25
25
pip install onnxconverter-common
26
26
pip install onnx==${{ inputs.onnx_version }}
27
- pip uninstall -y protobuf
28
- pip install "protobuf~=3.20"
29
27
pip install h5py
30
28
pip install parameterized
31
29
pip install timeout-decorator
32
30
pip install coloredlogs flatbuffers
33
- pip install tensorflow==${{ inputs.tf_version }}
34
31
pip install onnxruntime==${{ inputs.ort_version }}
35
32
pip install pillow
36
33
pip install opencv-python
50
47
pip install keras-self-attention
51
48
pip install pytest pytest-cov pytest-runner
52
49
53
- if [[ ${{ inputs.tf_version }} <= 2.15 ]]; then
54
- pip install "protobuf<3.20"
55
- fi
56
-
57
50
if [[ ${{ inputs.tf_version }} == 1.* ]]; then
58
51
pip install keras==2.3.1
59
52
pip install transformers==4.2.0
62
55
pip install numpy==1.19.0
63
56
else
64
57
pip install transformers
65
- if [[ ${{ inputs.tf_version }} != 2.13 && ${{ inputs.tf_version }} != 2.9 ]]; then
66
- pip install tf_keras==${{ inputs.tf_version }}
58
+ if [[ "${{ inputs.tf_version }}" != "2.13" && "${{ inputs.tf_version }}" != "2.9" ]]; then
59
+ pip install tf_keras==${{ inputs.tf_version }} tensorflow==${{ inputs.tf_version }}
60
+ else
61
+ pip install "protobuf<3.20" tensorflow==${{ inputs.tf_version }}
67
62
fi
68
63
fi
69
64
Original file line number Diff line number Diff line change @@ -28,16 +28,16 @@ runs:
28
28
pip install parameterized
29
29
pip install timeout-decorator
30
30
pip install coloredlogs flatbuffers
31
- pip install tensorflow==${{ inputs.tf_version }}
32
31
pip install pytest pytest-cov pytest-runner
33
32
pip install onnxruntime==${{ inputs.ort_version }}
34
33
pip uninstall -y protobuf
35
- pip install "protobuf~=3.20"
36
34
if [[ ${{ inputs.tf_version }} == 1.* ]]; then
37
35
pip install numpy==1.19.0
38
36
else
39
- if [[ ${{ inputs.tf_version }} != 2.13 && ${{ inputs.tf_version }} != 2.9 ]]; then
40
- pip install tf_keras==${{ inputs.tf_version }}
37
+ if [[ "${{ inputs.tf_version }}" != "2.13" && "${{ inputs.tf_version }}" != "2.9" ]]; then
38
+ pip install tf_keras==${{ inputs.tf_version }} tensorflow==${{ inputs.tf_version }}
39
+ else
40
+ pip install "protobuf<3.20" tensorflow==${{ inputs.tf_version }}
41
41
fi
42
42
fi
43
43
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pip install onnx==$ONNX_VERSION onnxruntime==$ORT_VERSION onnxruntime-extensions
22
22
if [[ $TF_VERSION == 1.* ]]; then
23
23
pip install numpy==1.19.0
24
24
else
25
- if [[ ${{ inputs.tf_version } } != 2.13 && ${{ inputs.tf_version } } != 2.9 ]]; then
25
+ if [[ " $TF_VERSION " != " 2.13" && " $TF_VERSION " != " 2.9" ]]; then
26
26
pip install tf_keras==$TF_VERSION
27
27
fi
28
28
fi
You can’t perform that action at this time.
0 commit comments