-
Notifications
You must be signed in to change notification settings - Fork 815
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
Dev add bitwise_not op #9859
Dev add bitwise_not op #9859
Conversation
marigoold
commented
Feb 13, 2023
•
edited
Loading
edited
- 增加了 bitwise_not 算子
- 修复了 ~Tensor 的错误(之前调用 logical not,其实应该调用 bitwise not)
…neflow into dev_add_bitwise_op
@@ -97,5 +97,29 @@ def test_scalar_bitwise_xor(test_case): | |||
return _test_scalar_bitwise(test_case, torch.bitwise_xor,) | |||
|
|||
|
|||
@flow.unittest.skip_unless_1n1d() | |||
class TestBitwiseNotModule(flow.unittest.TestCase): | |||
@autotest(n=10, auto_backward=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里为啥不支持auto_backward
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里为啥不支持auto_backward
它的输入只能是 int,不支持算微分
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,可以加个note说明下
Code got formatted by CI. Please request CI again if you still want to have this PR merged. If the PR is from a forked repo, please download the patch files from the GitHub Actions web page and apply them locally. |
Speed stats:
|
Speed stats:
|
View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/9859/ |