Skip to content

Commit 9871ba0

Browse files
authored
Add Opset 13 support for Relu (#816)
1. add opset 13 support for Relu to close issue #811 Signed-off-by: Winnie Tsang <wtsang@us.ibm.com>
1 parent bcea3e7 commit 9871ba0

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

doc/support_status.md

Lines changed: 3 additions & 3 deletions
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: 9e7b54b1d14aafc4aa6329c12f0ee74226255eca )|
4+
|ONNX-Tensorflow Version|Master ( commit id: fb3b6758903516d80ad4cc506bc4f589be8a7231 )|
55
|ONNX Version|Master ( commit id: 274e8b54e4c11c40a8c0a89599196f5311088b64 )|
66
|Tensorflow Version|v2.3.1|
77

@@ -129,7 +129,7 @@ Notes:
129129
|ReduceProd|**1**|1|1|1|1|1|1|1|1|1|**11**|11|**13**|ReduceProd|
130130
|ReduceSum|**1**|1|1|1|1|1|1|1|1|1|**11**|11|**13**:small_red_triangle:|ReduceSum|
131131
|ReduceSumSquare|**1**|1|1|1|1|1|1|1|1|1|**11**|11|**13**:small_red_triangle:|ReduceSumSquare|
132-
|Relu|**1**|1|1|1|1|**6**|6|6|6|6|6|6|**13**:small_red_triangle:|Relu|
132+
|Relu|**1**|1|1|1|1|**6**|6|6|6|6|6|6|**13**|Relu|
133133
|Reshape|**1**|1|1|1|**5**|5|5|5|5|5|5|5|**13**:small_red_triangle:|Reshape|
134134
|Resize|-|-|-|-|-|-|-|-|-|**10**:small_orange_diamond:|**11**:small_orange_diamond:|11:small_orange_diamond:|**13**:small_orange_diamond:|Resize|
135135
|ReverseSequence|-|-|-|-|-|-|-|-|-|**10**|10|10|10|ReverseSequence|
@@ -179,7 +179,7 @@ Notes:
179179
|Where|-|-|-|-|-|-|-|-|**9**|9|9|9|9|Where|
180180
|Xor|**1**|1|1|1|1|1|**7**|7|7|7|7|7|7|Xor|
181181

182-
ONNX-TF Supported Operators / ONNX Operators: 122 / 162
182+
ONNX-TF Supported Operators / ONNX Operators: 123 / 162
183183

184184
Notes:
185185
1. Cast: Cast string to data types other than float32/float64/int32/int64 is not supported in Tensorflow

onnx_tf/handlers/backend/relu.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ def version_1(cls, node, **kwargs):
1616
@classmethod
1717
def version_6(cls, node, **kwargs):
1818
return [cls.make_tensor_from_onnx_node(node, **kwargs)]
19+
20+
@classmethod
21+
def version_13(cls, node, **kwargs):
22+
return [cls.make_tensor_from_onnx_node(node, **kwargs)]

onnx_tf/opset_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
'ReduceProd': [1, 11, 13],
131131
'ReduceSum': [1, 11],
132132
'ReduceSumSquare': [1, 11],
133-
'Relu': [1, 6],
133+
'Relu': [1, 6, 13],
134134
'Reshape': [1, 5],
135135
'Resize': [10, 11, 13],
136136
'ReverseSequence': [10],

0 commit comments

Comments
 (0)