-
Notifications
You must be signed in to change notification settings - Fork 112
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
shape-legalize-to-stablehlo
emit segmentation fault when there is tensor.extract
in IR
#2488
Comments
Thanks @qingyunqu for pointing poining this issue. IMO, extracting value from scalar tensors, using empty indices, is not supported yet (from cs). IMO this is a case of data dependent dynamism which is not supported (ref Dynamism-RFC::Out Of Scope[O6]). At least we should error out instead of just crashing. In any case, will get back to you soon. |
Hi, I have another case that failed on
The error message is:
|
The Here's what I get from running this
Output
|
What happened?
Testcase:
Run
stablehlo-opt --shape-legalize-to-stablehlo
would reproduce the error.I prefer it to emit pass fail but segv.
Steps to reproduce your issue
Version information
No response
The text was updated successfully, but these errors were encountered: