-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[ONNX] Wrap 'If' if it has multiple outputs #8385
Conversation
Without this wrapper, an assertion in from_onnx() will fail with the error message showing ""Number of output mismatch"
Thanks for this fix, it makes sense to me. Can you add a test case that triggers the previous error to |
@jwfromm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for adding these tests. I think you just need to fix some formatting to pass CI's sanity check. You can do that by running make format
or black whatever.py
.
@jwfromm |
@karljang This is now merged. Thanks for taking the initiative to make this fix and congrats on your first commit! |
@jwfromm |
* [ONNX] Wrap 'If' if it has multiple outputs Without this wrapper, an assertion in from_onnx() will fail with the error message showing ""Number of output mismatch" * [ONNX] Test If nodes with multiple output tensors * Fix formatting issues
* [ONNX] Wrap 'If' if it has multiple outputs Without this wrapper, an assertion in from_onnx() will fail with the error message showing ""Number of output mismatch" * [ONNX] Test If nodes with multiple output tensors * Fix formatting issues
Without this wrapper, an assertion in from_onnx() will fail with the
error message showing "Number of output mismatch"
The assertion check is here: https://github.com/apache/tvm/blob/main/python/tvm/relay/frontend/onnx.py#L3597