Skip to content

Commit a4beb66

Browse files
authored
Create Release 1.7.0 (#817)
Signed-off-by: Winnie Tsang <wtsang@us.ibm.com>
1 parent 9871ba0 commit a4beb66

File tree

8 files changed

+223
-21
lines changed

8 files changed

+223
-21
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ cache: pip
1818
# at the time of the ONNX-TensorFlow release.
1919

2020
env:
21-
- ONNX_PIP=onnx==1.6.0 TF_PIP=tensorflow==2.0.2 TFA_PIP=tensorflow-addons==0.6.0
2221
- ONNX_PIP=onnx==1.7.0 TF_PIP=tensorflow-cpu==2.3.1 TFA_PIP=tensorflow-addons==0.11.2
22+
- ONNX_PIP=onnx==1.8.0 TF_PIP=tensorflow-cpu==2.3.1 TFA_PIP=tensorflow-addons==0.11.2
2323
- ONNX_PIP=git+https://github.com/onnx/onnx.git@master TF_PIP=tensorflow-cpu TFA_PIP=tensorflow-addons
2424

2525
jobs:

ONNX_VERSION_NUMBER

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.0
1+
1.7.0

README.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Tensorflow Backend for ONNX
2-
[![Build Status](https://travis-ci.org/onnx/onnx-tensorflow.svg?branch=master)](https://travis-ci.org/onnx/onnx-tensorflow)
2+
[![Build Status](https://travis-ci.com/onnx/onnx-tensorflow.svg?branch=master)](https://travis-ci.com/github/onnx/onnx-tensorflow)
33

44
## To convert models from ONNX to Tensorflow:
55

66
### Use CLI:
77

88
[Command Line Interface Documentation](https://github.com/onnx/onnx-tensorflow/blob/master/doc/CLI.md)
99

10-
From ONNX to Tensorflow: `onnx-tf convert -i /path/to/input.onnx -o /path/to/output.pb`
10+
From ONNX to Tensorflow: `onnx-tf convert -i /path/to/input.onnx -o /path/to/output`
1111

1212
### Convert programmatically:
1313

@@ -34,9 +34,14 @@ ONNX-TF requires ONNX (Open Neural Network Exchange) as an external dependency,
3434

3535
The specific ONNX release version that we support in the master branch of ONNX-TF can be found [here](https://github.com/onnx/onnx-tensorflow/blob/master/ONNX_VERSION_NUMBER). This information about ONNX version requirement is automatically encoded in `setup.py`, therefore users needn't worry about ONNX version requirement when installing ONNX-TF.
3636

37-
To install the latest version of ONNX-TF via pip, run `pip install onnx-tf`.
37+
As of November 24, 2020, we are unable to publish release 1.7.0 to PyPi due to problem described in issue #738.\
38+
Once the issue is resolved you should install the latest version of ONNX-TF via pip, by running `pip install onnx-tf`\
39+
In the mean time please get release 1.7.0 by running the following commands to checkout v1.7.0 tag and install it from source via pip.\
40+
`git clone https://github.com/onnx/onnx-tensorflow.git && cd onnx-tensorflow`\
41+
`git checkout v1.7.0`\
42+
`pip install -e .`
3843

39-
Because users often have their own preferences for which variant of Tensorflow to install (i.e., a GPU version instead of a CPU version), we do not explicitly require tensorflow in the installation script. It is therefore users' responsibility to ensure that the proper variant of Tensorflow is available to ONNX-TF. Moreover, we require Tensorflow version == 2.2.0.
44+
Because users often have their own preferences for which variant of Tensorflow to install (i.e., a GPU version instead of a CPU version), we do not explicitly require tensorflow in the installation script. It is therefore users' responsibility to ensure that the proper variant of Tensorflow is available to ONNX-TF. Moreover, we require Tensorflow version == 2.3.1.
4045

4146
## Development:
4247

@@ -48,7 +53,7 @@ Because users often have their own preferences for which variant of Tensorflow t
4853

4954
### Installation:
5055
- Install ONNX master branch from source.
51-
- Install Tensorflow >= 2.2.0 and tensorflow-addons. (Note for Tensorflow 1.x please refer the [tf-1.x branch](https://github.com/onnx/onnx-tensorflow/tree/tf-1.x))
56+
- Install Tensorflow >= 2.3.1 and tensorflow-addons. (Note for Tensorflow 1.x please refer the [tf-1.x branch](https://github.com/onnx/onnx-tensorflow/tree/tf-1.x))
5257
- Run `git clone https://github.com/onnx/onnx-tensorflow.git && cd onnx-tensorflow`.
5358
- Run `pip install -e .`.
5459

@@ -79,16 +84,5 @@ http://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html
7984
To perfom unit tests, run `python -m unittest discover test`.
8085
Testing requires significant hardware resources, but nonetheless, we highly recommend that users run through the complete test suite before deploying onnx-tf. The complete test suite typically takes between 15 and 45 minutes to complete, depending on hardware configurations.
8186

82-
PS. Please ensure your code is backward compatible with older version of ONNX. You can easily test it by running the following [docker container](https://hub.docker.com/r/winnietsang/onnx-tensorflow) with your code. If you don't have Docker installed yet, please follow this link to install [Docker](https://docs.docker.com/install/) on your environment.
83-
```
84-
sudo docker pull winnietsang/onnx-tensorflow:onnx1.7.0-tf2.2
85-
sudo docker run -it --name=YOUR-CONTAINER-NAME winnietsang/onnx-tensorflow:onnx1.7.0-tf2.2 /bin/bash
86-
git clone https://github.com/YOUR-USERNAME/onnx-tensorflow.git
87-
cd onnx-tensorflow
88-
git checkout -b YOUR-BRANCH --track remotes/origin/YOUR-BRANCH
89-
pip3 install -e .
90-
python3 -m unittest discover test
91-
```
92-
9387
#### Test Help:
9488
https://docs.python.org/2/library/unittest.html

VERSION_NUMBER

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.0
1+
1.7.0

Versioning.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ ONNX-TensorFlow version|ONNX version|TensorFlow version
88
1.3.0|1.3.0 (opset 8)|1.13.1
99
1.5.0|1.5.0 (opset 10)|1.15.0
1010
1.6.0|1.6.0 (opset 11)|2.2.0
11+
1.7.0|1.7.0 (opset 12)|2.3.1

doc/support_status.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ONNX-Tensorflow Support Status
22
|||
33
|-:|:-|
4-
|ONNX-Tensorflow Version|Master ( commit id: fb3b6758903516d80ad4cc506bc4f589be8a7231 )|
4+
|ONNX-Tensorflow Version|Master ( commit id: 9871ba020edac2d7122b38391c9f3a0a906a148d )|
55
|ONNX Version|Master ( commit id: 274e8b54e4c11c40a8c0a89599196f5311088b64 )|
66
|Tensorflow Version|v2.3.1|
77

doc/support_status_v1_7_0.md

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
# ONNX-Tensorflow Support Status
2+
|||
3+
|-:|:-|
4+
|ONNX-Tensorflow Version|v1.7.0|
5+
|ONNX Version|1.7.0|
6+
|Tensorflow Version|v2.3.1|
7+
8+
Notes:
9+
* Values that are new or updated from a previous opset version are in bold.
10+
* -: not defined in corresponding ONNX opset version
11+
* \*: the operator is deprecated
12+
* :small_red_triangle:: not supported yet
13+
* :small_orange_diamond:: partially supported
14+
* the rest are all supported
15+
16+
|||||||||||||||
17+
|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
18+
|**ONNX Operator**|**Opset 1**|**Opset 2**|**Opset 3**|**Opset 4**|**Opset 5**|**Opset 6**|**Opset 7**|**Opset 8**|**Opset 9**|**Opset 10**|**Opset 11**|**Opset 12**|**ONNX Operator**|
19+
|Abs|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Abs|
20+
|Acos|-|-|-|-|-|-|**7**|7|7|7|7|7|Acos|
21+
|Acosh|-|-|-|-|-|-|-|-|**9**|9|9|9|Acosh|
22+
|Add|**1**|1|1|1|1|**6**|**7**|7|7|7|7|7|Add|
23+
|And|**1**|1|1|1|1|1|**7**|7|7|7|7|7|And|
24+
|ArgMax|**1**|1|1|1|1|1|1|1|1|1|**11**|**12**|ArgMax|
25+
|ArgMin|**1**|1|1|1|1|1|1|1|1|1|**11**|**12**|ArgMin|
26+
|Asin|-|-|-|-|-|-|**7**|7|7|7|7|7|Asin|
27+
|Asinh|-|-|-|-|-|-|-|-|**9**|9|9|9|Asinh|
28+
|Atan|-|-|-|-|-|-|**7**|7|7|7|7|7|Atan|
29+
|Atanh|-|-|-|-|-|-|-|-|**9**|9|9|9|Atanh|
30+
|AveragePool|**1**|1|1|1|1|1|**7**|7|7|**10**|**11**|11|AveragePool|
31+
|BatchNormalization|**1**|1|1|1|1|**6**|**7**|7|**9**|9|9|9|BatchNormalization|
32+
|BitShift|-|-|-|-|-|-|-|-|-|-|**11**|11|BitShift|
33+
|Cast|**1**:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|**6**:small_orange_diamond:|6:small_orange_diamond:|6:small_orange_diamond:|**9**:small_orange_diamond:|9:small_orange_diamond:|9:small_orange_diamond:|9:small_orange_diamond:|Cast|
34+
|Ceil|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Ceil|
35+
|Celu|-|-|-|-|-|-|-|-|-|-|-|**12**|Celu|
36+
|Clip|**1**|1|1|1|1|**6**|6|6|6|6|**11**|**12**|Clip|
37+
|Compress|-|-|-|-|-|-|-|-|**9**|9|**11**|11|Compress|
38+
|Concat|**1**|1|1|**4**|4|4|4|4|4|4|**11**|11|Concat|
39+
|ConcatFromSequence|-|-|-|-|-|-|-|-|-|-|**11**:small_orange_diamond:|11:small_orange_diamond:|ConcatFromSequence|
40+
|Constant|**1**|1|1|1|1|1|1|1|**9**|9|**11**|**12**|Constant|
41+
|ConstantOfShape|-|-|-|-|-|-|-|-|**9**|9|9|9|ConstantOfShape|
42+
|Conv|**1**|1|1|1|1|1|1|1|1|1|**11**|11|Conv|
43+
|ConvInteger|-|-|-|-|-|-|-|-|-|**10**|10|10|ConvInteger|
44+
|ConvTranspose|**1**:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|**11**:small_orange_diamond:|11:small_orange_diamond:|ConvTranspose|
45+
|Cos|-|-|-|-|-|-|**7**|7|7|7|7|7|Cos|
46+
|Cosh|-|-|-|-|-|-|-|-|**9**|9|9|9|Cosh|
47+
|CumSum|-|-|-|-|-|-|-|-|-|-|**11**|11|CumSum|
48+
|DepthToSpace|**1**|1|1|1|1|1|1|1|1|1|**11**|11|DepthToSpace|
49+
|DequantizeLinear|-|-|-|-|-|-|-|-|-|**10**|10|10|DequantizeLinear|
50+
|Det|-|-|-|-|-|-|-|-|-|-|**11**|11|Det|
51+
|Div|**1**|1|1|1|1|**6**|**7**|7|7|7|7|7|Div|
52+
|Dropout|**1**|1|1|1|1|**6**|**7**|7|7|**10**|10|**12**|Dropout|
53+
|DynamicQuantizeLinear|-|-|-|-|-|-|-|-|-|-|**11**|11|DynamicQuantizeLinear|
54+
|Einsum|-|-|-|-|-|-|-|-|-|-|-|**12**|Einsum|
55+
|Elu|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Elu|
56+
|Equal|**1**|1|1|1|1|1|**7**|7|7|7|**11**|11|Equal|
57+
|Erf|-|-|-|-|-|-|-|-|**9**|9|9|9|Erf|
58+
|Exp|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Exp|
59+
|Expand|-|-|-|-|-|-|-|**8**|8|8|8|8|Expand|
60+
|EyeLike|-|-|-|-|-|-|-|-|**9**|9|9|9|EyeLike|
61+
|Flatten|**1**|1|1|1|1|1|1|1|**9**|9|**11**|11|Flatten|
62+
|Floor|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Floor|
63+
|GRU|**1**:small_orange_diamond:|1:small_orange_diamond:|**3**:small_orange_diamond:|3:small_orange_diamond:|3:small_orange_diamond:|3:small_orange_diamond:|**7**:small_orange_diamond:|7:small_orange_diamond:|7:small_orange_diamond:|7:small_orange_diamond:|7:small_orange_diamond:|7:small_orange_diamond:|GRU|
64+
|Gather|**1**|1|1|1|1|1|1|1|1|1|**11**|11|Gather|
65+
|GatherElements|-|-|-|-|-|-|-|-|-|-|**11**|11|GatherElements|
66+
|GatherND|-|-|-|-|-|-|-|-|-|-|**11**|**12**|GatherND|
67+
|Gemm|**1**|1|1|1|1|**6**|**7**|7|**9**|9|**11**|11|Gemm|
68+
|GlobalAveragePool|**1**|1|1|1|1|1|1|1|1|1|1|1|GlobalAveragePool|
69+
|GlobalLpPool|**1**|**2**|2|2|2|2|2|2|2|2|2|2|GlobalLpPool|
70+
|GlobalMaxPool|**1**|1|1|1|1|1|1|1|1|1|1|1|GlobalMaxPool|
71+
|Greater|**1**|1|1|1|1|1|**7**|7|**9**|9|9|9|Greater|
72+
|GreaterOrEqual|-|-|-|-|-|-|-|-|-|-|-|**12**|GreaterOrEqual|
73+
|HardSigmoid|**1**|1|1|1|1|**6**|6|6|6|6|6|6|HardSigmoid|
74+
|Hardmax|**1**|1|1|1|1|1|1|1|1|1|**11**|11|Hardmax|
75+
|Identity|**1**|1|1|1|1|1|1|1|1|1|1|1|Identity|
76+
|If|**1**|1|1|1|1|1|1|1|1|1|**11**|11|If|
77+
|InstanceNormalization|**1**|1|1|1|1|**6**|6|6|6|6|6|6|InstanceNormalization|
78+
|IsInf|-|-|-|-|-|-|-|-|-|**10**|10|10|IsInf|
79+
|IsNaN|-|-|-|-|-|-|-|-|**9**|9|9|9|IsNaN|
80+
|LRN|**1**|1|1|1|1|1|1|1|1|1|1|1|LRN|
81+
|LSTM|**1**:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|**7**:small_orange_diamond:|7:small_orange_diamond:|7:small_orange_diamond:|7:small_orange_diamond:|7:small_orange_diamond:|7:small_orange_diamond:|LSTM|
82+
|LeakyRelu|**1**|1|1|1|1|**6**|6|6|6|6|6|6|LeakyRelu|
83+
|Less|**1**|1|1|1|1|1|**7**|7|**9**|9|9|9|Less|
84+
|LessOrEqual|-|-|-|-|-|-|-|-|-|-|-|**12**|LessOrEqual|
85+
|Log|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Log|
86+
|LogSoftmax|**1**|1|1|1|1|1|1|1|1|1|**11**|11|LogSoftmax|
87+
|Loop|**1**|1|1|1|1|1|1|1|1|1|**11**|11|Loop|
88+
|LpNormalization|**1**|1|1|1|1|1|1|1|1|1|1|1|LpNormalization|
89+
|LpPool|**1**|**2**|2|2|2|2|2|2|2|2|**11**|11|LpPool|
90+
|MatMul|**1**|1|1|1|1|1|1|1|**9**|9|9|9|MatMul|
91+
|MatMulInteger|-|-|-|-|-|-|-|-|-|**10**|10|10|MatMulInteger|
92+
|Max|**1**|1|1|1|1|**6**|6|**8**|8|8|8|**12**|Max|
93+
|MaxPool|**1**:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|**8**:small_orange_diamond:|8:small_orange_diamond:|**10**:small_orange_diamond:|**11**:small_orange_diamond:|**12**:small_orange_diamond:|MaxPool|
94+
|MaxRoiPool|**1**:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|MaxRoiPool|
95+
|MaxUnpool|-|-|-|-|-|-|-|-|**9**|9|**11**|11|MaxUnpool|
96+
|Mean|**1**|1|1|1|1|**6**|6|**8**|8|8|8|8|Mean|
97+
|MeanVarianceNormalization|-|-|-|-|-|-|-|-|**9**|9|9|9|MeanVarianceNormalization|
98+
|Min|**1**|1|1|1|1|**6**|6|**8**|8|8|8|**12**|Min|
99+
|Mod|-|-|-|-|-|-|-|-|-|**10**|10|10|Mod|
100+
|Mul|**1**|1|1|1|1|**6**|**7**|7|7|7|7|7|Mul|
101+
|Multinomial|-|-|-|-|-|-|**7**:small_red_triangle:|7:small_red_triangle:|7:small_red_triangle:|7:small_red_triangle:|7:small_red_triangle:|7:small_red_triangle:|Multinomial|
102+
|Neg|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Neg|
103+
|NegativeLogLikelihoodLoss|-|-|-|-|-|-|-|-|-|-|-|**12**:small_red_triangle:|NegativeLogLikelihoodLoss|
104+
|NonMaxSuppression|-|-|-|-|-|-|-|-|-|**10**|**11**|11|NonMaxSuppression|
105+
|NonZero|-|-|-|-|-|-|-|-|**9**|9|9|9|NonZero|
106+
|Not|**1**|1|1|1|1|1|1|1|1|1|1|1|Not|
107+
|OneHot|-|-|-|-|-|-|-|-|**9**|9|**11**|11|OneHot|
108+
|Or|**1**|1|1|1|1|1|**7**|7|7|7|7|7|Or|
109+
|PRelu|**1**|1|1|1|1|**6**|**7**|7|**9**|9|9|9|PRelu|
110+
|Pad|**1**|**2**|2|2|2|2|2|2|2|2|**11**|11|Pad|
111+
|Pow|**1**|1|1|1|1|1|**7**|7|7|7|7|**12**|Pow|
112+
|QLinearConv|-|-|-|-|-|-|-|-|-|**10**|10|10|QLinearConv|
113+
|QLinearMatMul|-|-|-|-|-|-|-|-|-|**10**|10|10|QLinearMatMul|
114+
|QuantizeLinear|-|-|-|-|-|-|-|-|-|**10**|10|10|QuantizeLinear|
115+
|RNN|**1**:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|1:small_orange_diamond:|**7**:small_orange_diamond:|7:small_orange_diamond:|7:small_orange_diamond:|7:small_orange_diamond:|7:small_orange_diamond:|7:small_orange_diamond:|RNN|
116+
|RandomNormal|**1**|1|1|1|1|1|1|1|1|1|1|1|RandomNormal|
117+
|RandomNormalLike|**1**|1|1|1|1|1|1|1|1|1|1|1|RandomNormalLike|
118+
|RandomUniform|**1**|1|1|1|1|1|1|1|1|1|1|1|RandomUniform|
119+
|RandomUniformLike|**1**|1|1|1|1|1|1|1|1|1|1|1|RandomUniformLike|
120+
|Range|-|-|-|-|-|-|-|-|-|-|**11**|11|Range|
121+
|Reciprocal|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Reciprocal|
122+
|ReduceL1|**1**|1|1|1|1|1|1|1|1|1|**11**|11|ReduceL1|
123+
|ReduceL2|**1**|1|1|1|1|1|1|1|1|1|**11**|11|ReduceL2|
124+
|ReduceLogSum|**1**|1|1|1|1|1|1|1|1|1|**11**|11|ReduceLogSum|
125+
|ReduceLogSumExp|**1**|1|1|1|1|1|1|1|1|1|**11**|11|ReduceLogSumExp|
126+
|ReduceMax|**1**|1|1|1|1|1|1|1|1|1|**11**|**12**|ReduceMax|
127+
|ReduceMean|**1**|1|1|1|1|1|1|1|1|1|**11**|11|ReduceMean|
128+
|ReduceMin|**1**|1|1|1|1|1|1|1|1|1|**11**|**12**|ReduceMin|
129+
|ReduceProd|**1**|1|1|1|1|1|1|1|1|1|**11**|11|ReduceProd|
130+
|ReduceSum|**1**|1|1|1|1|1|1|1|1|1|**11**|11|ReduceSum|
131+
|ReduceSumSquare|**1**|1|1|1|1|1|1|1|1|1|**11**|11|ReduceSumSquare|
132+
|Relu|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Relu|
133+
|Reshape|**1**|1|1|1|**5**|5|5|5|5|5|5|5|Reshape|
134+
|Resize|-|-|-|-|-|-|-|-|-|**10**:small_orange_diamond:|**11**:small_orange_diamond:|11:small_orange_diamond:|Resize|
135+
|ReverseSequence|-|-|-|-|-|-|-|-|-|**10**|10|10|ReverseSequence|
136+
|RoiAlign|-|-|-|-|-|-|-|-|-|**10**:small_orange_diamond:|10:small_orange_diamond:|10:small_orange_diamond:|RoiAlign|
137+
|Round|-|-|-|-|-|-|-|-|-|-|**11**|11|Round|
138+
|Scan|-|-|-|-|-|-|-|**8**|**9**|9|**11**|11|Scan|
139+
|Scatter|-|-|-|-|-|-|-|-|**9**|9|**11**\*|11\*|Scatter|
140+
|ScatterElements|-|-|-|-|-|-|-|-|-|-|**11**|11|ScatterElements|
141+
|ScatterND|-|-|-|-|-|-|-|-|-|-|**11**|11|ScatterND|
142+
|Selu|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Selu|
143+
|SequenceAt|-|-|-|-|-|-|-|-|-|-|**11**|11|SequenceAt|
144+
|SequenceConstruct|-|-|-|-|-|-|-|-|-|-|**11**|11|SequenceConstruct|
145+
|SequenceEmpty|-|-|-|-|-|-|-|-|-|-|**11**|11|SequenceEmpty|
146+
|SequenceErase|-|-|-|-|-|-|-|-|-|-|**11**|11|SequenceErase|
147+
|SequenceInsert|-|-|-|-|-|-|-|-|-|-|**11**|11|SequenceInsert|
148+
|SequenceLength|-|-|-|-|-|-|-|-|-|-|**11**|11|SequenceLength|
149+
|Shape|**1**|1|1|1|1|1|1|1|1|1|1|1|Shape|
150+
|Shrink|-|-|-|-|-|-|-|-|**9**|9|9|9|Shrink|
151+
|Sigmoid|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Sigmoid|
152+
|Sign|-|-|-|-|-|-|-|-|**9**|9|9|9|Sign|
153+
|Sin|-|-|-|-|-|-|**7**|7|7|7|7|7|Sin|
154+
|Sinh|-|-|-|-|-|-|-|-|**9**|9|9|9|Sinh|
155+
|Size|**1**|1|1|1|1|1|1|1|1|1|1|1|Size|
156+
|Slice|**1**|1|1|1|1|1|1|1|1|**10**|**11**|11|Slice|
157+
|Softmax|**1**|1|1|1|1|1|1|1|1|1|**11**|11|Softmax|
158+
|SoftmaxCrossEntropyLoss|-|-|-|-|-|-|-|-|-|-|-|**12**:small_red_triangle:|SoftmaxCrossEntropyLoss|
159+
|Softplus|**1**|1|1|1|1|1|1|1|1|1|1|1|Softplus|
160+
|Softsign|**1**|1|1|1|1|1|1|1|1|1|1|1|Softsign|
161+
|SpaceToDepth|**1**|1|1|1|1|1|1|1|1|1|1|1|SpaceToDepth|
162+
|Split|**1**|**2**|2|2|2|2|2|2|2|2|**11**|11|Split|
163+
|SplitToSequence|-|-|-|-|-|-|-|-|-|-|**11**:small_orange_diamond:|11:small_orange_diamond:|SplitToSequence|
164+
|Sqrt|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Sqrt|
165+
|Squeeze|**1**|1|1|1|1|1|1|1|1|1|**11**|11|Squeeze|
166+
|StringNormalizer|-|-|-|-|-|-|-|-|-|**10**:small_red_triangle:|10:small_red_triangle:|10:small_red_triangle:|StringNormalizer|
167+
|Sub|**1**|1|1|1|1|**6**|**7**|7|7|7|7|7|Sub|
168+
|Sum|**1**|1|1|1|1|**6**|6|**8**|8|8|8|8|Sum|
169+
|Tan|-|-|-|-|-|-|**7**|7|7|7|7|7|Tan|
170+
|Tanh|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Tanh|
171+
|TfIdfVectorizer|-|-|-|-|-|-|-|-|**9**|9|9|9|TfIdfVectorizer|
172+
|ThresholdedRelu|-|-|-|-|-|-|-|-|-|**10**|10|10|ThresholdedRelu|
173+
|Tile|**1**|1|1|1|1|**6**|6|6|6|6|6|6|Tile|
174+
|TopK|**1**|1|1|1|1|1|1|1|1|**10**|**11**|11|TopK|
175+
|Transpose|**1**|1|1|1|1|1|1|1|1|1|1|1|Transpose|
176+
|Unique|-|-|-|-|-|-|-|-|-|-|**11**:small_red_triangle:|11:small_red_triangle:|Unique|
177+
|Unsqueeze|**1**|1|1|1|1|1|1|1|1|1|**11**|11|Unsqueeze|
178+
|Upsample|**1**:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|1:small_red_triangle:|**7**:small_orange_diamond:|7:small_orange_diamond:|**9**:small_orange_diamond:|**10**\*|10\*|10\*|Upsample|
179+
|Where|-|-|-|-|-|-|-|-|**9**|9|9|9|Where|
180+
|Xor|**1**|1|1|1|1|1|**7**|7|7|7|7|7|Xor|
181+
182+
ONNX-TF Supported Operators / ONNX Operators: 156 / 162
183+
184+
Notes:
185+
1. Cast: Cast string to data types other than float32/float64/int32/int64 is not supported in Tensorflow
186+
2. ConcatFromSequence: new_axis=1 not supported in Tensorflow.
187+
3. ConvTranspose: ConvTranspose with dilations != 1, or transposed convolution for 4D or higher are not supported in Tensorflow.
188+
4. GRU: GRU with clip or GRU with linear_before_reset, or GRU not using sigmoid for z and r, or GRU using Elu as the activation function with alpha != 1, or GRU using HardSigmoid as the activation function with alpha != 0.2 or beta != 0.5 are not supported in TensorFlow.
189+
5. LSTM: LSTM not using sigmoid for `f`, or LSTM not using the same activation for `g` and `h` are not supported in Tensorflow.
190+
6. MaxPool: MaxPoolWithArgmax with pad is None or incompatible mode, or MaxPoolWithArgmax with 4D or higher input, or MaxPoolWithArgmax with column major are not supported in Tensorflow.
191+
7. RNN: RNN with clip is not supported in Tensorflow.
192+
8. Resize: Resize required 4D input in Tensorflow. For opset 11, only the following attributes and inputs conbination are supported in Tensorflow:
193+
1. mode=nearest, coordinate_transformation_mode=align_corners, nearest_mode=round_prefer_ceil, can use scales(*) or sizes.
194+
2. mode=nearest, coordinate_transformation_mode=asymmetric, nearest_mode=floor, can use scales(*) or sizes.
195+
3. mode=nearest, coordinate_transformation_mode=tf_half_pixel_for_nn, nearest_mode=floor, can use scales(*) or sizes.
196+
4. mode=linear, coordinate_transformation_mode=align_corners, can use scales(*) or sizes.
197+
5. mode=linear, coordinate_transformation_mode=asymmetric, can use scales(*) or sizes.
198+
6. mode=linear, coordinate_transformation_mode=half_pixel, can use scales(*) or sizes.
199+
7. mode=cubic, coordinate_transformation_mode=align_corners, cubic_coeff_a=-0.5, exclude_outside=1, can use scales(*) or sizes.
200+
8. mode=cubic, coordinate_transformation_mode=asymmetric, cubic_coeff_a=-0.5, exclude_outside=1, can use scales(*) or sizes.
201+
9. mode=cubic, coordinate_transformation_mode=half_pixel, cubic_coeff_a=-0.5, exclude_outside=1, can use scales(*) or sizes.
202+
10. mode=nearest, coordinate_transformation_mode=tf_crop_and_resize, extrapolation_value=any_float_value, nearest_mode=round_prefer_ceil, can use scales or sizes.
203+
11. mode=linear, coordinate_transformation_mode=tf_crop_and_resize, extrapolation_value=any_float_value, can use scales or sizes.
204+
- Note (*): The accuracy of your model will go down, if the height and the width of the new sizes(scales * origial sizes) are not in whole numbers.
205+
9. RoiAlign: sampling_ratio <= 0 is not fully supported.
206+
10. SplitToSequence: Scalar as the split input not supported.
207+
11. Upsample: Upsample required 4D input in Tensorflow.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
version=version,
4343
description=
4444
'Tensorflow backend for ONNX (Open Neural Network Exchange).',
45-
install_requires=[onnx_dep, "PyYAML"],
45+
install_requires=[onnx_dep, "PyYAML", "tensorflow_addons"],
4646
entry_points={
4747
"console_scripts": [
4848
"onnx-tf=onnx_tf.cli:main",

0 commit comments

Comments
 (0)