Open banekg opened 5 months ago
@jliangTT This is already discussed and blocked as we are not able to store the -0.0
@jliangTT This is already discussed and blocked as we are not able to store the
-0.0
As mentioned above we are not able to store-0.0
so signbit is fixed for positive 0.0
in PR link
Yes, spun up a high BW discussion with the leads here: https://tenstorrent.slack.com/archives/C05GH08C58F/p1714406021866519 (internal)
Let's continue to mark those as blocked in the spreadsheet and focus on other stuff. thanks!
Please close this once the tests have been updated. See #8944
Hi @ttmtrajkovic , @tt-aho , @banekg , @rtawfik01 We have a bug issue related to signbit and we have a few questions here :
-0.0
. So signbit was fixed for positive 0.0
in this PR. And the later we had a discussion under issue #8944. We would like to get your inputs on how we can test for -0.0
case ( #8944-comment )virdhtachani/signbit_test
(#13947)tests/tt_eager/python_api_testing/sweep_tests/pytests/tt_dnn/test_signbit_op.py
pytest tests/tt_eager/python_api_testing/sweep_tests/pytests/tt_dnn/test_signbit_op.py::TestSignbit::test_run_signbit_op
- Input passed as -0.0 gets passed into kernel as 0.0 value.bfloat8_b
data type of range (-1.0 , 0.0 )
due to precision error , -0.0034
approximates to -0.0
-0.0
as bfloat8_b
would treat the input as 0.0
and hence the result is incorrectvirdhtachani/signbit_test
(#13947)tests/ttnn/python_api_testing/non_working_unit_tests/grayskull/test_eltwise_signbit_print_error.py
Would like your inputs on this to proceed further Thanks
After discussions with @ttmtrajkovic , Issue Assigned to LLK Team https://github.com/tenstorrent/tt-metal/issues/13953
Moving this issue to On-Hold status
Describe the bug ttnn.signbit operation breaks with "low PCC value" error in some test cases.
To Reproduce Steps to reproduce the behavior:
barsic/ttnn-param-fix-skipped
branch. To be merged intomain
soon.test_signbit.py
by using this command:pytest tests/ttnn/python_api_testing/non_working_unit_tests/grayskull/test_signbit.py
Expected behavior There is a test case presented in the unit test
tests/ttnn/python_api_testing/non_working_unit_tests/grayskull/test_signbit.py
and it is expected to fail with Equal check failed error.Getting Additional info for the operation under test and its behavior To get additional information and results for different combinations of input shapes, types, layouts and memory configs for which this operation was tested you can also run locally sweeps for ttnn.std and check the results. To do this you should:
Getting Started
page to setup the repo, environment variables andpython-env
source build/python_env/bin/activate
python tests/tt_eager/python_api_testing/sweep_tests/run_pytorch_test.py -i tests/ttnn/python_api_testing/sweep_tests/test_configs/ci_sweep_tests_broken/grayskull/ttnn_eltwise_signbit_test.yaml -o ./result-sweeps
signbit_sweep.csv
which holds all executed sweeps, among which you can also find the ones that failed and were recreated by the unit test, which you can get by searching uniquedata_seed
field.