-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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][Tensor] --linalg-fold-unit-extent-dims crashes with assertion failure "invalid index for shaped type" in FoldEmptyTensorWithDimOp. #111270
Comments
Hi! This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below. |
@llvm/issue-subscribers-good-first-issue Author: tju-chenyaosuo (tju-chenyaosuo)
git version: eaff3a7
command to reproduce: a.mlir:
stack trace:
|
Out of range emitError. I think we can solve this problem. |
Isn't this correct behavior for the The specifications of the If that is the case and this isn't expected behavior then I'm happy to pick this up as my first issue! |
Indeed, this is UB, |
Sweet, I'll take a crack at it then. You can assign this to me |
Similar logic here: llvm-project/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp Lines 747 to 751 in 864902e
Also maybe a verifier would be good here? But I'm unsure if this is how UB should be handled |
git version: eaff3a7
command to reproduce:
mlir-opt --linalg-fold-unit-extent-dims a.mlir
a.mlir:
stack trace:
The text was updated successfully, but these errors were encountered: