-
Notifications
You must be signed in to change notification settings - Fork 24.3k
[inductor] torch.slice_scatter
throws AssertionError
when meeting internal float32
#147842
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
Comments
Hi! |
Hi, @Ajay-26
u r right! However, Eager backend can do implicit dtype conversion as u can Unfortunately, Inductor compiler can't do this dtype conversion and throws Feel free to have any further discussion if it is helpful to you. :) |
Hi @shaoyuyoung , I’d like to work on this issue! from my understanding, the inductor backend currently does not perform implicit dtype conversion, which leads to an assertion error. i plan to modify the inductor compiler to align with the eager backend’s behavior. before proceeding, i wanted to confirm:
let me know if this is the right way, thanks! |
Hi, @Numbers0689 , thanks for your comment and kindness!
This solution is enough for this case. But I am not sure whether other dtypes (
To be honest, I am also not sure (but I think no tests exist currently). Previously, we have discussed some I'm not sure if my answer is correct, feel free to discuss more. Or, you can draft a PR first? And then pt developers will take a look at your PR (for code review). :) |
thanks for the clarification! I'll check out the dtype behavior across other integer types and go through #147666 I'll also add a unit test to verify the fix and start drafting a PR. |
Hi, @shaoyuyoung , while investigating |
Well, expected results... As I have encountered some similar cases. It seems that Back to fixing this issue. Previously, I have tried to add a manual check for these dtypes one by one like #145136. I think it is enough for this issue. But it would be great if we could find some way to solve this problem uniformly. :) |
@shaoyuyoung as you said this will only resolve this. broader solution is fixing Modifying the Inductor Compiler's Type Inference. If you want i can fix and commit a branch. Hope this helps. |
Hi, @Vikramjeetsingh07 |
Uh oh!
There was an error while loading. Please reload this page.
🐛 Describe the bug
description: when meeting internal
float32
(it'sy
in my case), eager pass the check and return 0 while inductor throws an assertion errordevice: both on triton and CPP
Error logs
Versions
nightly 20250225
cc @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @amjames @aakhundov
The text was updated successfully, but these errors were encountered: