-
Notifications
You must be signed in to change notification settings - Fork 73
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
#12901: Remove extraneous value: int
parameter from ttnn.bitwise_not
#12902
Conversation
a58b1d9
to
52045f1
Compare
@jdh8 this also requires bindings and tests update. |
@@ -898,7 +897,7 @@ def eltwise_bitwise_not( | |||
**kwargs, | |||
): | |||
t0 = setup_tt_tensor(x, device, layout[0], input_mem_config[0], dtype[0]) | |||
t1 = ttnn.bitwise_not(t0, value, memory_config=output_mem_config, queue_id=0) | |||
t1 = ttnn.bitwise_not(t0, memory_config=output_mem_config, queue_id=0) |
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.
Besides this, is there any test that need to update? BTW, how do I run tests locally?
@@ -326,6 +322,9 @@ std::pair<string, string> get_op_init_and_func_default(UnaryOpType op_type, std: | |||
case UnaryOpType::NEG: | |||
op_init_and_name = {"negative_tile_init();", fmt::format("negative_tile({});", idst)}; | |||
break; | |||
case UnaryOpType::BITWISE_NOT: | |||
op_init_and_name = {"bitwise_not_tile_init();", fmt::format("bitwise_not_tile({});", idst)}; |
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.
C/C++ code as string interests me a lot. Does it mean that we collate the C/C++ code somewhere and invokes a compiler in turn?
Bitwise NOT simply flips all bits. It uses no additional value. This issue blocks tenstorrent/pytorch2.0_ttnn#236
This PR was covered by #13579 |
Ticket
value: int
parameter fromttnn.bitwise_not
#12901aten.bitwise_not
tottnn.bitwise_not
pytorch2.0_ttnn#236Problem description
Bitwise NOT simply flips all bits. It uses no additional value.
What's changed
Remove extraneous
value: int
parameter fromttnn.bitwise_not
Checklist