Skip to content

Commit 5b9dbe7

Browse files
committed
Remove unuseful code.
Signed-off-by: Jay Zhang <[email protected]>
1 parent 28407dc commit 5b9dbe7

File tree

4 files changed

+10
-133
lines changed

4 files changed

+10
-133
lines changed

.github/actions/keras_application_test/action.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,19 @@ runs:
4747
pip install git+https://www.github.com/keras-team/keras-contrib.git
4848
pip install keras-tcn==2.8.3
4949
pip install git+https://github.com/qubvel/efficientnet
50+
pip install keras-self-attention
51+
pip install pytest pytest-cov pytest-runner
52+
5053
if [[ ${{ inputs.tf_version }} == 1.* ]]; then
5154
pip install keras==2.3.1
5255
pip install transformers==4.2.0
5356
pip uninstall -y h5py
5457
pip install h5py==2.9.0
58+
pip install numpy==1.19.0
5559
else
5660
pip install transformers
61+
pip install "numpy<2"
5762
fi
58-
pip install keras-self-attention
59-
pip install pytest pytest-cov pytest-runner
60-
pip install "numpy<2"
6163
6264
pip install -e .
6365

.github/actions/keras_unit_test/action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ runs:
3333
pip install onnxruntime==${{ inputs.ort_version }}
3434
pip uninstall -y protobuf
3535
pip install "protobuf~=3.20"
36-
pip install "numpy<2"
36+
if [[ ${{ inputs.tf_version }} == 1.* ]]; then
37+
pip install numpy==1.19.0
38+
else
39+
pip install "numpy<2"
40+
fi
3741
3842
pip install -e .
3943

.github/workflows/keras_application_test_ci.yml

-75
Original file line numberDiff line numberDiff line change
@@ -124,81 +124,6 @@ jobs:
124124
name: Test Results (${{ matrix.python_version }}-${{ matrix.tf_version }}-${{ matrix.os }})
125125
path: ./**/test-results*.xml
126126

127-
# run_tests_tf_15:
128-
# strategy:
129-
# matrix:
130-
# tf_version: ['1.15.0']
131-
# python_version: ['3.7'] # Max version that supports tf 1.15
132-
# ort_version: ['1.14.1'] # Max version that supports python 3.7
133-
# onnx_version: ['1.14.1'] # Max version that supports python 3.7
134-
# os: ['ubuntu-latest', 'windows-2022']
135-
136-
# runs-on: ${{ matrix.os }}
137-
138-
# steps:
139-
# - name: Set up Python (${{ matrix.python_version }})
140-
# uses: actions/setup-python@v5
141-
# with:
142-
# python-version: ${{ matrix.python_version }}
143-
144-
# - name: Checkout code
145-
# uses: actions/checkout@v4
146-
147-
# - name: Install dependencies (TF-v${{ matrix.tf_version }})
148-
# shell: bash
149-
# run: |
150-
# python -m pip install --upgrade pip
151-
# pip install onnxconverter-common
152-
# pip install onnx==${{ matrix.onnx_version }}
153-
# pip uninstall -y protobuf
154-
# pip install "protobuf~=3.20"
155-
# pip install h5py==3.7.0
156-
# pip install parameterized
157-
# pip install timeout-decorator
158-
# pip install coloredlogs flatbuffers
159-
# pip install tensorflow==${{ matrix.tf_version }}
160-
# pip install keras==2.3.1
161-
# pip install onnxruntime==${{ matrix.ort_version }}
162-
# pip install Pillow==8.2.0
163-
# pip install opencv-python
164-
# pip install tqdm
165-
# pip install keras-segmentation==0.2.0
166-
# git clone https://github.com/matterport/Mask_RCNN
167-
# cd Mask_RCNN
168-
# pip install -r requirements.txt
169-
# python setup.py install
170-
# cd ..
171-
# pip install matplotlib
172-
# git clone https://github.com/qqwweee/keras-yolo3
173-
# pip install keras-resnet
174-
# pip install git+https://www.github.com/keras-team/keras-contrib.git
175-
# pip install keras-tcn==2.8.3
176-
# pip install git+https://github.com/qubvel/efficientnet
177-
# pip install transformers==4.2.0
178-
# pip install keras-self-attention
179-
# pip install pytest pytest-cov pytest-runner
180-
# pip install numpy==1.19.0
181-
# pip install h5py==2.9.0
182-
183-
# pip install -e .
184-
185-
# echo "----- List all of depdencies:"
186-
# pip freeze --all
187-
188-
# - name: Run keras application tests (${{ matrix.os }})
189-
# run: |
190-
# python -c "import onnxruntime"
191-
# pytest tests/keras2onnx_unit_tests --doctest-modules --junitxml=junit/test-results.xml
192-
# cd tests/keras2onnx_applications/nightly_build
193-
# python run_all_v2.py --exclude "test_keras_applications_v2.py"
194-
195-
# - name: Upload Test Results
196-
# if: always()
197-
# uses: actions/upload-artifact@v3
198-
# with:
199-
# name: Test Results (${{ matrix.tf_version }}-${{ matrix.python_version }}-${{ matrix.os }})
200-
# path: ./**/test-results*.xml
201-
202127
publish-test-results:
203128
name: "Publish Tests Results to Github"
204129
needs: [Test_min_py_with_min_tf, Test_max_py_with_latest_tf, Test_py37_with_tf1_15, Extra_tests]

.github/workflows/keras_unit_test_ci.yml

-54
Original file line numberDiff line numberDiff line change
@@ -123,60 +123,6 @@ jobs:
123123
name: Test Results (${{ matrix.python_version }}-${{ matrix.tf_version }}-${{ matrix.os }})
124124
path: ./**/test-results*.xml
125125

126-
# run_tests_tf_15:
127-
# strategy:
128-
# matrix:
129-
# tf_version: ['1.15.0']
130-
# python_version: ['3.7'] # Max version that supports tf 1.15
131-
# ort_version: ['1.14.1'] # Max version that supports python 3.7
132-
# onnx_version: ['1.14.1'] # Max version that supports python 3.7
133-
# os: ['ubuntu-latest', 'windows-2022']
134-
135-
# runs-on: ${{ matrix.os }}
136-
137-
# steps:
138-
# - name: Set up Python (${{ matrix.python_version }})
139-
# uses: actions/setup-python@v5
140-
# with:
141-
# python-version: ${{ matrix.python_version }}
142-
143-
# - name: Checkout code
144-
# uses: actions/checkout@v4
145-
146-
# - name: Install dependencies (tf v${{ matrix.tf_version }})
147-
# shell: bash
148-
# run: |
149-
# python -m pip install --upgrade pip
150-
# pip install onnxconverter-common
151-
# pip install onnx==${{ matrix.onnx_version }}
152-
# pip uninstall -y protobuf
153-
# pip install "protobuf~=3.20"
154-
# pip install h5py==3.7.0
155-
# pip install parameterized
156-
# pip install timeout-decorator
157-
# pip install coloredlogs flatbuffers
158-
# pip install tensorflow==${{ matrix.tf_version }}
159-
# pip install pytest pytest-cov pytest-runner
160-
# pip install onnxruntime==${{ matrix.ort_version }}
161-
# pip install numpy==1.19.0
162-
# pip install -e .
163-
164-
# echo "----- List all of depdencies:"
165-
# pip freeze --all
166-
167-
# - name: Run keras unit tests (${{ matrix.os }})
168-
# run: |
169-
# python -c "import onnxruntime"
170-
# python -c "import onnxconverter_common"
171-
# pytest tests/keras2onnx_unit_tests --doctest-modules --junitxml=junit/test-results.xml
172-
173-
# - name: Upload Test Results
174-
# if: always()
175-
# uses: actions/upload-artifact@v3
176-
# with:
177-
# name: Test Results (${{ matrix.tf_version }}-${{ matrix.python_version }}-${{ matrix.os }})
178-
# path: ./**/test-results*.xml
179-
180126
publish-test-results:
181127
name: "Publish Tests Results to Github"
182128
needs: [Test_min_py_with_min_tf, Test_max_py_with_latest_tf, Test_py37_with_tf1_15, Extra_tests]

0 commit comments

Comments
 (0)