Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip version conversion if non-ONNX domain and throw explicit error #4521

Merged
merged 3 commits into from
Oct 1, 2022

Conversation

jcwchen
Copy link
Member

@jcwchen jcwchen commented Sep 18, 2022

Description

Skip version conversion if non-ONNX domain and throw explicit error.

Motivation and Context

Fixes #4515.

@jcwchen jcwchen added the module: version converter Issues related to ONNX version converter label Sep 18, 2022
@jcwchen jcwchen requested a review from a team as a code owner September 18, 2022 14:35
Signed-off-by: Chun-Wei Chen <[email protected]>
continue;
}
if (op_name != "Undefined" && op_name != "Captured") {
} else if (cur_op->domain() != "" && cur_op->domain() != "ai.onnx") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if a node is Undefined from a domain != from "" or "ai.onnx"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. Did you mean an operator named "Undefined" but from domain "" or "ai.onnx"? If yes, current behavior is do nothing without any error message.

@jcwchen jcwchen enabled auto-merge (squash) October 1, 2022 03:04
@jcwchen jcwchen merged commit 15e2870 into onnx:main Oct 1, 2022
@jcwchen jcwchen deleted the jcw/vc/clear-error branch October 1, 2022 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: version converter Issues related to ONNX version converter
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Explicit error message when converting version for opsets from non-official domain
3 participants