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

[MLIR][ONNX] Add support for onnx.scan op #3516

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Shukla-Gaurav
Copy link
Collaborator

This commit lowers onnx.scan op to torch.prim.Loop op and adds the lowering in the onnx pipeline.

@renxida
Copy link
Collaborator

renxida commented Jul 1, 2024

Might be a good idea to either run an e2eshark op test or a custom test case with a contrived graph "loop body"

just to make sure this actually runs and is consistent with onnxruntime.

Sometimes the PrimLoopOp lowers to linalg but IREE is unable to execute it due to problems with mutability in tensors.

This commit lowers onnx.scan op to torch.prim.Loop op and adds the
lowering in the onnx pipeline.

Signed-Off-by: Gaurav Shukla <[email protected]>
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.

None yet

2 participants