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

ttnn.ldexp_bw operation fails with low PCC #13929

Open
Tracked by #13795
nemanjagrujic opened this issue Oct 17, 2024 · 3 comments
Open
Tracked by #13795

ttnn.ldexp_bw operation fails with low PCC #13929

nemanjagrujic opened this issue Oct 17, 2024 · 3 comments
Assignees
Labels
bug Something isn't working GS op_cat: eltwise WH

Comments

@nemanjagrujic
Copy link
Contributor

ttnn.ldexp_bw operation fails with low PCC (eg 0.98)

Steps to reproduce

You can reproduce this error with sweep test tests/sweep_framework/sweeps/eltwise/unary_backward/ldexp_bw.py. To run:

python3 tests/sweep_framework/runner.py --elastic cloud --module-name eltwise.unary_backward.ldexp_bw

Results can be found on elastic cloud as explained here: https://github.com/tenstorrent/tt-metal/tree/main/tests/sweep_framework

@umadevimcw
Copy link
Contributor

@nemanjagrujic Do we need to checkout to specific branch to get the test file that mentioned in the description? I didn't find that in main

@nemanjagrujic
Copy link
Contributor Author

@umadevimcw Checkout ngrujic/sweep-tests-1. I hope I will merge it soon.

@umadevimcw
Copy link
Contributor

umadevimcw commented Nov 14, 2024

@eyonland @nemanjagrujic

The problem is the range of input passed to the above op, ldexp depends on exp op. In the exp op, there is condition available to check whether input is > 89 and < -42. Please find the below image
Image

In the below you can find a simple python code where if the exp(89) is very large number and exp(-42) is too small number hence ttnn exp has such condition. Hence I have updated the range in the test and submitted the PR #14996

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GS op_cat: eltwise WH
Projects
None yet
Development

No branches or pull requests

2 participants