Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

jdh8
Copy link
Contributor

@jdh8 jdh8 commented Sep 19, 2024

Ticket

Problem description

Bitwise NOT simply flips all bits. It uses no additional value.

What's changed

Remove extraneous value: int parameter from ttnn.bitwise_not

Checklist

  • Post commit CI passes
  • Blackhole Post commit (if applicable)
  • Model regression CI testing passes (if applicable)
  • Device performance regression CI testing passes (if applicable)
  • New/Existing tests provide coverage for changes

@ayerofieiev-tt
Copy link
Member

@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)
Copy link
Contributor Author

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)};
Copy link
Contributor Author

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?

@jdh8
Copy link
Contributor Author

jdh8 commented Oct 20, 2024

This PR was covered by #13579

@jdh8 jdh8 closed this Oct 20, 2024
@jdh8 jdh8 deleted the fix/bitwise_not branch October 20, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extraneous value: int parameter from ttnn.bitwise_not
3 participants