Skip to content

Commit 0bfdf63

Browse files
committed
Remove opset below to 13 ci tests and enhance doc
Signed-off-by: Deyu Huang <[email protected]>
1 parent 6365d38 commit 0bfdf63

File tree

5 files changed

+11
-23
lines changed

5 files changed

+11
-23
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ The common issues we run into we try to document here [Troubleshooting Guide](Tr
1717

1818
| Build Type | OS | Python | TensorFlow | ONNX opset | Status |
1919
| --- | --- | --- | --- | --- | --- |
20-
| Unit Test - Basic | Linux, MacOS<sup>\*</sup>, Windows<sup>\*</sup> | 3.7-3.10 | 1.13-1.15, 2.1-2.9 | 9-16 | [![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.10 | 1.13-1.15, 2.1-2.9 | 9-16 | [![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.10 | 1.13-1.15, 2.1-2.9 | 13-17 | [![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.10 | 1.13-1.15, 2.1-2.9 | 13-17 | [![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
@@ -27,7 +27,7 @@ The common issues we run into we try to document here [Troubleshooting Guide](Tr
2727

2828
tf2onnx will use the ONNX version installed on your system and installs the latest ONNX version if none is found.
2929

30-
We support and test ONNX opset-9 to opset-17. opset-6 to opset-8 should work but we don't test them.
30+
We support and test ONNX opset-13 to opset-17. opset-6 to opset-12 should work but we don't test them.
3131
By default we use ```opset-13``` for the resulting ONNX graph.
3232

3333
If you want the graph to be generated with a specific opset, use ```--opset``` in the command line, for example ```--opset 13```.
@@ -43,7 +43,6 @@ You can install tf2onnx on top of tf-1.x or tf-2.x.
4343
### Python
4444

4545
We support Python ```3.7-3.10```.
46-
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.
4746

4847
## Prerequisites
4948

@@ -83,7 +82,7 @@ or
8382

8483
```python setup.py develop```
8584

86-
tensorflow-onnx requires onnx-1.5 or better and will install/upgrade onnx if needed.
85+
tensorflow-onnx requires onnx-1.9 or better and will install/upgrade onnx if needed.
8786

8887
To create a wheel for distribution:
8988

@@ -100,7 +99,7 @@ To get started with `tensorflow-onnx`, run the `t2onnx.convert` command, providi
10099

101100
The above command uses a default of `13` for the ONNX opset. If you need a newer opset, or want to limit your model to use an older opset then you can provide the `--opset` argument to the command. If you are unsure about which opset to use, refer to the [ONNX operator documentation](https://github.com/onnx/onnx/releases).
102101

103-
```python -m tf2onnx.convert --saved-model tensorflow-model-path --opset 16 --output model.onnx```
102+
```python -m tf2onnx.convert --saved-model tensorflow-model-path --opset 17 --output model.onnx```
104103

105104
If your TensorFlow model is in a format other than `saved model`, then you need to provide the inputs and outputs of the model graph.
106105

ci_build/azure_pipelines/templates/job_generator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ parameters:
55
python_versions: ['3.7']
66
tf_versions: ['']
77
onnx_versions: ['']
8-
onnx_opsets: ['17', '16', '15', '14', '13', '12', '11', '10', '9']
8+
onnx_opsets: ['17', '16', '15', '14', '13']
99
onnx_backends: {onnxruntime: ['1.12.0']}
1010
job: {}
1111
run_setup: 'True'

ci_build/azure_pipelines/templates/unit_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Run unit test
22

33
parameters:
4-
onnx_opsets: ['17', '16', '15', '14', '13', '12', '11', '10', '9']
4+
onnx_opsets: ['17', '16', '15', '14', '13']
55
skip_tflite_tests: 'True'
66
skip_tfjs_tests: 'True'
77
skip_tf_tests: 'False'

ci_build/azure_pipelines/unit_test-matrix.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,7 @@ stages:
77
parameters:
88
platforms: ['linux', 'windows']
99
python_versions: ['3.7']
10-
tf_versions: ['1.14.0']
11-
onnx_opsets: ['']
12-
job:
13-
steps:
14-
- template: 'unit_test.yml'
15-
report_coverage: 'True'
16-
17-
- template: 'templates/job_generator.yml'
18-
parameters:
19-
platforms: ['linux', 'windows']
20-
python_versions: ['3.7']
21-
tf_versions: ['1.15.2','2.1.0']
10+
tf_versions: ['1.14.0', '1.15.2']
2211
onnx_opsets: ['']
2312
job:
2413
steps:

ci_build/azure_pipelines/unit_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ stages:
8080
- template: 'templates/job_generator.yml'
8181
parameters:
8282
# TFJS tf 2.9
83-
python_versions: ['3.9']
83+
python_versions: ['3.10']
8484
tf_versions: ['2.9.1']
8585
onnx_opsets: ['']
8686
skip_tfjs_tests: 'False'
@@ -93,7 +93,7 @@ stages:
9393
- template: 'templates/job_generator.yml'
9494
parameters:
9595
# TFLite tf 2.9
96-
python_versions: ['3.8']
96+
python_versions: ['3.10']
9797
tf_versions: ['2.9.1']
9898
onnx_opsets: ['']
9999
skip_tflite_tests: 'False'
@@ -162,7 +162,7 @@ stages:
162162
python_versions: ['3.9']
163163
platforms: ['windows']
164164
tf_versions: ['2.9.1']
165-
onnx_opsets: ['15']
165+
onnx_opsets: ['16']
166166
job:
167167
steps:
168168
- template: 'unit_test.yml'

0 commit comments

Comments
 (0)