Skip to content

Conversation

@fatcat-z
Copy link
Collaborator

@fatcat-z fatcat-z commented Dec 20, 2023

In ONNX 1.15 version, the helper.make_attribute() method doesn't allow to accept an empty list unless the value of attr_type is given as well. 'attr_type' is a new attribute introduced in ONNX 1.15.

In same cases, tf2onnx may add an empty list as an attribute to a newly created ONNX node. This fix will handle this situation in ONNX 1.15 and lower versions for compatibility.

Fix #2280

fatcat-z and others added 23 commits December 6, 2023 17:15
Signed-off-by: Jay Zhang <[email protected]>
Signed-off-by: Jay Zhang <[email protected]>
Signed-off-by: Jay Zhang <[email protected]>
Signed-off-by: Jay Zhang <[email protected]>
Signed-off-by: Jay Zhang <[email protected]>
Signed-off-by: Jay Zhang <[email protected]>
Signed-off-by: Jay Zhang <[email protected]>
@fatcat-z fatcat-z marked this pull request as ready for review December 21, 2023 02:20
@fatcat-z fatcat-z requested a review from xiaowuhu December 21, 2023 02:20
Signed-off-by: Jay Zhang <[email protected]>
Signed-off-by: Jay Zhang <[email protected]>
@fatcat-z fatcat-z enabled auto-merge (squash) December 21, 2023 05:01
@fatcat-z fatcat-z merged commit e177a26 into onnx:main Dec 21, 2023
@fatcat-z fatcat-z deleted the support_onnx_1_15 branch January 16, 2024 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TF2ONNX doesn't support ONNX 1.15.0.

2 participants