Conversation
🔗 Helpful links
✅ No Failures (0 Pending)As of commit 032f324 (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
test/test_binary_ufuncs.py
Outdated
| ) | ||
|
|
||
| @dtypes(torch.uint8, torch.int8, torch.int16, torch.int32, torch.int64) | ||
| @dtypes(torch.uint8, torch.int8, torch.int16, torch.int32, torch.int64, torch.float) |
There was a problem hiding this comment.
can you add a todo to port this test to error_inputs in OpInfos?
There was a problem hiding this comment.
I updated this PR and removed this test
|
QUantization, seriously? |
|
Could you also update the kernels (there is a dedicated path that implements this) and the docs? |
|
onnx failure looks real (they are also probably using fp shift scalar) |
|
@lezcano which kernel are you referring to? Are you talking about the kernel that I already removed from my previous PR? https://github.com/pytorch/pytorch/pull/77146/files#diff-0fd0c99904c62a1a7e46b08568d047c4e9ab153b529a8c6a2317ac6a3726bdff |
|
oops. Yes, I was referring to that kernel, thanks! |
|
I think starting from C++20, they are no longer undefined https://en.cppreference.com/w/cpp/language/operator_arithmetic. I guess PyTorch should not worry about whatever C++ does not provide in this case? When C++20 is adopted, this issue will be automatically resolved. |
|
Yeah, we are doing whatever c++ does (and that includes implementation-defined logical/binary rshift for signed args) |
|
@pytorchbot merge this |
|
Hey @zasdfgbnm. |
|
Adding |
Summary: - Bitwise shift remove floating point support - Bitwise and, or, xor add (scalar, tensor) overload - Use `test_ops.py` to test these ops, including error cases Pull Request resolved: #77621 Approved by: https://github.com/ngimel Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/f274558018ff3beefe6282d59bea0350a632484f Reviewed By: b0noI Differential Revision: D36466067 Pulled By: b0noI fbshipit-source-id: 66e08e665f6f8d23c622fb5f683abc5de9ac2884
test_ops.pyto test these ops, including error cases