-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### Ticket #14982 ### Problem description Provide context for the problem. ### What's changed - Updated threshold logic to handle cases when input_tensor=threshold value - Updated with supported data type and layout Tests : - `pytest tests/ttnn/python_api_testing/non_working_unit_tests/grayskull/test_eltwise_threshold.py` : <img width="1101" alt="Screenshot 2024-11-22 at 6 09 03 PM" src="https://github.com/user-attachments/assets/80b5820f-8e4d-4a8b-9914-d3df21f72f90"> - `pytest tests/ttnn/unit_tests/operations/eltwise/test_activation.py::test_threshold` : <img width="1087" alt="Screenshot 2024-11-22 at 6 09 39 PM" src="https://github.com/user-attachments/assets/61f30c51-5d78-49d2-af08-e7c764a330a0"> - `pytest tests/ttnn/unit_tests/operations/eltwise/test_composite.py::test_unary_composite_threshold_ttnn` : <img width="1088" alt="Screenshot 2024-11-22 at 6 10 21 PM" src="https://github.com/user-attachments/assets/a2ca063e-65fb-4a4e-a9cc-6348eb3c95c0"> - `python tests/ttnn/sweep_tests/run_sweeps.py --include threshold.py` - passed - `pytest tests/ttnn/unit_tests/operations/eltwise/test_composite.py::test_threshold_example` : <img width="1092" alt="Screenshot 2024-11-22 at 6 11 40 PM" src="https://github.com/user-attachments/assets/56eafb45-8011-440c-8958-f212869b0634"> ### Checklist - [ ] Post commit CI passes ### Doc screenshot <img width="963" alt="Screenshot 2024-11-22 at 11 06 48 PM" src="https://github.com/user-attachments/assets/1be96ac7-dc1b-434a-ad1d-ebe95edd7b51">
- Loading branch information
1 parent
077f71e
commit 388d56e
Showing
4 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters