-
Notifications
You must be signed in to change notification settings - Fork 22.1k
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
jit to support bitwise inplace ops: |=, &=, <<=, >>=, ^= #22124
Comments
So most bitwise ops actually do work.
I can take the ones that aren't implemented yet. |
@Chillee Do you also prefer that |
@xuhdev It looks to me like https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/native_functions.yaml#L3201 |
Are bitwise shifts supported by JIT now? @Chillee |
It seems that <<, >> is supported However, not <<=, >>=, |=, &=: torch.bitwise_or(o1, c1, out = o1) # works in torch.jit.script
o1 |= c1 # does not work in torch.jit.script |
@Chillee I updated the title. If ok, could you reopen this issue? |
If
~mask
is replaced by1 - mask
, everything works. Also the error message is quite cryptic :)The text was updated successfully, but these errors were encountered: