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

#8721: Add forward support for lei #8722

Closed
wants to merge 1 commit into from
Closed

Conversation

mouliraj-mcw
Copy link
Contributor

@mouliraj-mcw mouliraj-mcw commented May 22, 2024

Ticket: #8721

Add LE_ op ( less than or equal to op , in_place operation)

  • Test File:

    • Unary LE_ : tests/ttnn/unit_tests/operations/test_binary_composite.py::test_lei_ttnn - PASSED
    • Binary LE_ : tests/ttnn/unit_tests/operations/test_binary_composite.py::test_binary_lei_ttnn - PASSED
  • CI test: Link - PASSED

Comment on lines 395 to 403
Tensor ExecuteBinaryLE::operator()(const Tensor& input_a, const Tensor& input_b, const std::optional<MemoryConfig>& output_mem_config) {
return ttnn::le(input_a, input_b, std::nullopt, output_mem_config, input_a);
}


Tensor ExecuteBinaryLE::operator()(const Tensor& input, float scalar, const std::optional<MemoryConfig>& output_mem_config) {
return ttnn::le(input, scalar, std::nullopt, output_mem_config, input);
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this operation still take in output mem config when it is specifically an in place operation so output_mem_config will never actually be needed/used since it will always be the input mem config?

@mouliraj-mcw mouliraj-mcw force-pushed the mouliraj/binary_lei branch 3 times, most recently from 8830e27 to bb494e9 Compare August 7, 2024 09:57
Copy link
Contributor

@eyonland eyonland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please have this reviewed by an MCW colleague prior to posting the PR.

@mouliraj-mcw
Copy link
Contributor Author

Closing this PR. It will be Handled in PR link

@mouliraj-mcw mouliraj-mcw deleted the mouliraj/binary_lei branch August 10, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants