-
Notifications
You must be signed in to change notification settings - Fork 12
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
Slicing a shape with a negative index sometimes does not work #206
Comments
MLIR dump from this example:
|
Contrasting with the dump from
Most of the code in the first dump is, I assume, from handling the slice and tensor addition in return index if index >= 0 else index + t_shape[i] An alternative to consider would be if it results in less code or easier-to-analyze code to do this in FlatIR. However, in principle, I don't think the generated MLIR is wrong, so it should not result in this sort of error. |
If we use the output of slicing a shape with a negative index in certain operations, we get a failure:
The text was updated successfully, but these errors were encountered: