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

'tensor.dim' op unexpected during shape cleanup #19474

Open
jinchen62 opened this issue Dec 12, 2024 · 0 comments
Open

'tensor.dim' op unexpected during shape cleanup #19474

jinchen62 opened this issue Dec 12, 2024 · 0 comments
Labels
bug 🐞 Something isn't working

Comments

@jinchen62
Copy link
Contributor

What happened?

Getting the following error

error: 'tensor.dim' op unexpected during shape cleanup; dynamic dimensions must have been resolved prior to leaving the flow dialect

Full error log: https://gist.github.com/jinchen62/a1de60c0562389f823ddf9d7fe6d24d9
Reproducer: https://gist.github.com/jinchen62/e22cab3ad4562a97c03c8ddfe4f4fd9f

Seems tensor.dim op fails with dynamic shapes in a scf.for loop.

Steps to reproduce your issue

iree-compile --iree-hal-target-backends=llvm-cpu --iree-llvmcpu-target-cpu=host repro.mlir -o test.vmfb

What component(s) does this issue relate to?

No response

Version information

Local build on TOM

Additional context

No response

@jinchen62 jinchen62 added the bug 🐞 Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant