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

Add support for multiple dynamic reassociation dims for unflatten.int #3504

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

zjgarvey
Copy link
Collaborator

Addresses an issue with onnx.Gather lowering to linalg: nod-ai/SHARK-ModelDev#242

The builder for tensor.expand_shape, without an explicitly provided output shape, fails to infer an output shape in the case of multiple dynamic reassociation dims. I tried adding the output shape explicitly for tensor.expand_shape, but ran into compilation issues later on (see iree-org/iree#17760).

This PR adds support by lowering this op to tensor.reshape when multiple dynamic reassociation dims are provided.

@rsuderman rsuderman merged commit af236da into llvm:main Jun 28, 2024
3 checks passed
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.

2 participants