-
Notifications
You must be signed in to change notification settings - Fork 533
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] Scan outputs for onnx.Loop #3988
Comments
Example of loop with a scan output: |
I'm going to assign this to someone. In the meantime, some reproduction instructions:
We don't seem to have support for |
Thank you @zjgarvey and @rkayaith. I actually intended to submit a PR for this if I could crack it myself, but I didn't commit to it because I was not familiar with the code base. Looking into it, I did come to the same conclusion and tried to implemented this using
I do not intend to be critical, I appreciate the complexity of this project. I just wanted to point these out in case you want to take it into consideration for the purpose of task prioritisation. |
Taking another look, it appears that the optional attribute I think we can support this if |
Thank you @zjgarvey, yes, I had some ONNX model I was trying to compile with IREE and was failing on this operation. However, I still found other issues even after I removed the operation (I think the next error I found was in "Expand" operation where the number of output dimensions was not known at compilation time). I eventually decided to start rewriting the model in PyTorch (from TensorFlow), possibly reducing the amount of pre- and post-processing work I was embedding in the model. |
The current implementation for
onnx.Loop
operator (PR #3408) does not support scan outputs. These are additional outputs that are concatenated across all iterations (see operator spec for more information).The text was updated successfully, but these errors were encountered: