Skip to content

Commit cc16eb9

Browse files
hwangdeyufatcat-z
andauthored
Remove python 3.6 support, upgrade CI (#1940)
* drop python36 unit tests Signed-off-by: Deyu Huang <deyhuang@microsoft.com> * add doc change Signed-off-by: Deyu Huang <deyhuang@microsoft.com> Co-authored-by: Jay Zhang <jiz@microsoft.com>
1 parent aa83304 commit cc16eb9

11 files changed

+49
-58
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ __Note: tensorflow.js support was just added. While we tested it with many tfjs
99

1010
TensorFlow has many more ops than ONNX and occasionally mapping a model to ONNX creates issues.
1111

12-
You find a list of supported Tensorflow ops and their mapping to ONNX [here](support_status.md).
12+
You find a list of supported TensorFlow ops and their mapping to ONNX [here](support_status.md).
1313

1414
The common issues we run into we try to document here [Troubleshooting Guide](Troubleshooting.md).
1515

1616
<br/>
1717

18-
| Build Type | OS | Python | Tensorflow | ONNX opset | Status |
18+
| Build Type | OS | Python | TensorFlow | ONNX opset | Status |
1919
| --- | --- | --- | --- | --- | --- |
20-
| Unit Test - Basic | Linux, MacOS<sup>\*</sup>, Windows<sup>\*</sup> | 3.6-3.9 | 1.12-1.15, 2.1-2.8 | 9-15 | [![Build Status](https://dev.azure.com/tensorflow-onnx/tensorflow-onnx/_apis/build/status/unit_test?branchName=main)](https://dev.azure.com/tensorflow-onnx/tensorflow-onnx/_build/latest?definitionId=16&branchName=main) |
21-
| Unit Test - Full | Linux, MacOS, Windows | 3.6-3.9 | 1.12-1.15, 2.1-2.8 | 9-15 | [![Build Status](https://dev.azure.com/tensorflow-onnx/tensorflow-onnx/_apis/build/status/unit_test-matrix?branchName=main)](https://dev.azure.com/tensorflow-onnx/tensorflow-onnx/_build/latest?definitionId=18&branchName=main) | |
20+
| Unit Test - Basic | Linux, MacOS<sup>\*</sup>, Windows<sup>\*</sup> | 3.7-3.9 | 1.13-1.15, 2.1-2.8 | 9-15 | [![Build Status](https://dev.azure.com/tensorflow-onnx/tensorflow-onnx/_apis/build/status/unit_test?branchName=main)](https://dev.azure.com/tensorflow-onnx/tensorflow-onnx/_build/latest?definitionId=16&branchName=main) |
21+
| Unit Test - Full | Linux, MacOS, Windows | 3.7-3.9 | 1.13-1.15, 2.1-2.8 | 9-15 | [![Build Status](https://dev.azure.com/tensorflow-onnx/tensorflow-onnx/_apis/build/status/unit_test-matrix?branchName=main)](https://dev.azure.com/tensorflow-onnx/tensorflow-onnx/_build/latest?definitionId=18&branchName=main) | |
2222
<br/>
2323

2424
## Supported Versions
@@ -34,15 +34,15 @@ If you want the graph to be generated with a specific opset, use ```--opset``` i
3434

3535
### TensorFlow
3636

37-
We support ```tf-1.x graphs``` and ```tf-2.x```. To keep our test matrix manageable we test tf2onnx running on top of ```tf-1.12 or better```.
37+
We support ```tf-1.x graphs``` and ```tf-2.x```. To keep our test matrix manageable we test tf2onnx running on top of ```tf-1.13 or better```.
3838

3939
When running under tf-2.x tf2onnx will use the tensorflow V2 controlflow.
4040

4141
You can install tf2onnx on top of tf-1.x or tf-2.x.
4242

4343
### Python
4444

45-
We support Python ```3.6-3.9```.
45+
We support Python ```3.7-3.9```.
4646
Note that on windows for Python > 3.7 the protobuf package doesn't use the cpp implementation and is very slow - we recommend to use Python 3.7 for that reason.
4747

4848
## Prerequisites

ci_build/azure_pipelines/keras2onnx_application_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
vmImage: 'ubuntu-latest'
99
strategy:
1010
matrix:
11-
Python36-onnx1.5:
12-
python.version: '3.6'
11+
Python37-onnx1.5:
12+
python.version: '3.7'
1313
ONNX_PATH: onnx==1.5.0
1414
INSTALL_KERAS: pip install keras==2.2.4
1515
UNINSTALL_KERAS:
@@ -79,8 +79,8 @@ jobs:
7979
vmImage: 'windows-2019'
8080
strategy:
8181
matrix:
82-
Python36-onnx1.5:
83-
python.version: '3.6'
82+
Python37-onnx1.5:
83+
python.version: '3.7'
8484
ONNX_PATH: onnx==1.5.0
8585
INSTALL_KERAS: pip install keras==2.2.4
8686
UNINSTALL_KERAS:

ci_build/azure_pipelines/keras2onnx_unit_test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
matrix:
1010

1111
############ TF Keras Unit Tests ############
12-
Python36-tf1.15:
13-
python.version: '3.6'
12+
Python37-tf1.15:
13+
python.version: '3.7'
1414
ONNX_PATH: onnx==1.10.2
1515
TENSORFLOW_PATH: tensorflow==1.15.0
1616
INSTALL_ORT: pip install onnxruntime==1.9.0
@@ -45,8 +45,8 @@ jobs:
4545
INSTALL_NUMPY: pip install numpy==1.19.0
4646

4747
############ Pure Keras Unit Tests ############
48-
Keras-Py36-tf1.15.0:
49-
python.version: '3.6'
48+
Keras-Py37-tf1.15.0:
49+
python.version: '3.7'
5050
ONNX_PATH: onnx==1.10.2
5151
KERAS: keras==2.2.5
5252
TENSORFLOW_PATH: tensorflow==1.15.0
@@ -88,8 +88,8 @@ jobs:
8888
strategy:
8989
matrix:
9090
############ TF Keras Unit Tests ############
91-
Python36-tf-1.15:
92-
python.version: '3.6'
91+
Python37-tf-1.15:
92+
python.version: '3.7'
9393
ONNX_PATH: onnx==1.10.2
9494
TENSORFLOW_PATH: tensorflow==1.15.0
9595
INSTALL_ORT: pip install onnxruntime==1.9.0
@@ -123,8 +123,8 @@ jobs:
123123
INSTALL_NUMPY: pip install numpy==1.19.0
124124

125125
############ Pure Keras Unit Tests ############
126-
Keras-Py36-tf1.15.0:
127-
python.version: '3.6'
126+
Keras-Py37-tf1.15.0:
127+
python.version: '3.7'
128128
ONNX_PATH: onnx==1.10.2
129129
KERAS: keras==2.2.5
130130
TENSORFLOW_PATH: tensorflow==1.15.0

ci_build/azure_pipelines/onnxruntime_nightly_test.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,8 @@ stages:
1919
- template: 'templates/job_generator.yml'
2020
parameters:
2121
platforms: ['linux', 'windows']
22-
python_versions: ['3.7', '3.6']
23-
tf_versions: ['1.13.1']
24-
onnx_opsets: ['']
25-
onnx_backends: {onnxruntime: ['nightly']}
26-
job:
27-
steps:
28-
- template: 'unit_test.yml'
29-
report_coverage: 'True'
30-
31-
- template: 'templates/job_generator.yml'
32-
parameters:
33-
platforms: ['linux', 'windows']
34-
python_versions: [3.7', '3.6']
35-
tf_versions: ['1.14.0']
22+
python_versions: ['3.7']
23+
tf_versions: ['1.13.1', '1.14.0']
3624
onnx_opsets: ['']
3725
onnx_backends: {onnxruntime: ['nightly']}
3826
job:

ci_build/azure_pipelines/pretrained_model_test-matrix.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,8 @@ jobs:
44
- template: 'templates/job_generator.yml'
55
parameters:
66
platforms: ['linux', 'windows']
7-
python_versions: ['3.6']
8-
tf_versions: ['1.13.1', '1.12.3']
9-
job:
10-
steps:
11-
- template: 'pretrained_model_test.yml'
12-
13-
- template: 'templates/job_generator.yml'
14-
parameters:
15-
platforms: ['linux', 'windows']
16-
python_versions: ['3.7', '3.6']
17-
tf_versions: ['1.14.0']
7+
python_versions: ['3.7']
8+
tf_versions: ['1.13.1', '1.14.0']
189
job:
1910
steps:
2011
- template: 'pretrained_model_test.yml'

ci_build/azure_pipelines/templates/combine_test_coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ stages:
2424
inputs:
2525
createCustomEnvironment: 'true'
2626
environmentName: 'tf2onnx'
27-
packageSpecs: 'python=3.6'
27+
packageSpecs: 'python=3.7'
2828
updateConda: 'false'
2929

3030
- bash: |

ci_build/azure_pipelines/trimmed_keras2onnx_application_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
vmImage: 'ubuntu-latest'
99
strategy:
1010
matrix:
11-
Python36-onnx1.10:
12-
python.version: '3.6'
11+
Python37-onnx1.10:
12+
python.version: '3.7'
1313
ONNX_PATH: onnx==1.10.2
1414
INSTALL_KERAS: pip install keras==2.2.4
1515
UNINSTALL_KERAS:

ci_build/azure_pipelines/trimmed_keras2onnx_unit_test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ jobs:
99
matrix:
1010

1111
############ TF Keras Unit Tests ############
12-
Python36-tf1.15:
13-
python.version: '3.6'
12+
Python37-tf1.15:
13+
python.version: '3.7'
1414
ONNX_PATH: onnx==1.10.2
1515
TENSORFLOW_PATH: tensorflow==1.15.0
1616
INSTALL_ORT: pip install onnxruntime==1.9.0
17+
INSTALL_NUMPY: pip install numpy==1.19.0
1718

1819
Python38-tf2.5:
1920
python.version: '3.8'
@@ -51,11 +52,12 @@ jobs:
5152
strategy:
5253
matrix:
5354
############ TF Keras Unit Tests ############
54-
Python36-tf-1.15:
55-
python.version: '3.6'
55+
Python37-tf-1.15:
56+
python.version: '3.7'
5657
ONNX_PATH: onnx==1.10.2
5758
TENSORFLOW_PATH: tensorflow==1.15.0
5859
INSTALL_ORT: pip install onnxruntime==1.9.0
60+
INSTALL_NUMPY: pip install numpy==1.19.0
5961

6062
Python37-tf2.3:
6163
python.version: '3.7'

ci_build/azure_pipelines/unit_test-matrix.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ stages:
66
- template: 'templates/job_generator.yml'
77
parameters:
88
platforms: ['linux', 'windows']
9-
python_versions: ['3.6']
10-
tf_versions: ['1.12.3']
9+
python_versions: ['3.7']
10+
tf_versions: ['1.13.1']
1111
onnx_opsets: ['']
1212
job:
1313
steps:
@@ -17,7 +17,7 @@ stages:
1717
- template: 'templates/job_generator.yml'
1818
parameters:
1919
platforms: ['linux', 'windows']
20-
python_versions: ['3.7', '3.6']
20+
python_versions: ['3.7']
2121
tf_versions: ['1.14.0']
2222
onnx_opsets: ['']
2323
job:
@@ -61,7 +61,7 @@ stages:
6161
- template: 'templates/job_generator.yml'
6262
parameters:
6363
platforms: ['linux', 'windows']
64-
python_versions: ['3.8']
64+
python_versions: ['3.9']
6565
tf_versions: ['2.8.0']
6666
onnx_opsets: ['']
6767
job:

ci_build/azure_pipelines/unit_test.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ stages:
127127

128128
- template: 'templates/job_generator.yml'
129129
parameters:
130-
# tf 1.12
131-
python_versions: [3.6']
132-
tf_versions: ['1.12.3']
130+
# tf 1.13
131+
python_versions: [3.7']
132+
tf_versions: ['1.13.1']
133133
onnx_opsets: ['9']
134134
job:
135135
steps:
@@ -157,5 +157,16 @@ stages:
157157
- template: 'unit_test.yml'
158158
report_coverage: 'True'
159159

160+
- template: 'templates/job_generator.yml'
161+
parameters:
162+
python_versions: ['3.9']
163+
platforms: ['windows']
164+
tf_versions: ['2.8.1']
165+
onnx_opsets: ['15']
166+
job:
167+
steps:
168+
- template: 'unit_test.yml'
169+
report_coverage: 'True'
170+
160171
- template: 'templates/combine_test_coverage.yml'
161172

0 commit comments

Comments
 (0)