-
Notifications
You must be signed in to change notification settings - Fork 96
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.embedding_bw inconsistent documentation regarding input tensors dtypes #13685
Comments
@amalbasaTT For this bug do you mean that we are not supposed to allow different data types for output and input gradient tensors and we should exit with an error message ? Or do you mean different data types should be able to work together ? |
I mean that this constraint should be in the documentation. And I think that different data types should be supported. I fixed the issue text so that the description of the problem isn't so vague, my bad on that. |
### Ticket #13685 ### Problem description - ttnn.embedding_bw doesn't support output and input gradient tensors having different dtypes. - ttnn.embedding_bw is not an eltwise op. So, moving corresponding tests outside eltwise folder. ### What's changed - Updated document to add a note mentioning input and output gradients must have the same datatype. - Moved sweep test from `tests/sweep_framework/sweeps/eltwise/binary_backward/embedding_bw/embedding_bw.py` to `tests/sweep_framework/sweeps/embedding_bw/embedding_bw.py` - Move unit test from from `tests/ttnn/unit_tests/operations/eltwise/backward/test_backward_embedding.py` to `tests/ttnn/unit_tests/operations/test_backward_embedding.py` ### Updated doc <img width="1139" alt="Screenshot 2024-11-04 at 17 49 31" src="https://github.com/user-attachments/assets/467fec4f-cb30-4ec9-ac26-9e59827ed45b"> ### Checklist - [x] [Post commit CI passes](https://github.com/tenstorrent/tt-metal/actions/runs/11680989159) - PASSED - [x] [Run Sweeps](https://github.com/tenstorrent/tt-metal/actions/runs/11678538301) - PASSED - [x] [Night fast dispatch tests](https://github.com/tenstorrent/tt-metal/actions/runs/11678522765) (same as main)
Updated document and merged to main. Closing this issue. |
ttnn.embedding_bw doesn't support output and input gradient tensors having different dtypes. This bug/constraint should be put in the documentation.
.
To Reproduce
Steps to reproduce the behavior:
Sweep test for embedding_bw is located in 'tests/sweep_framework/sweeps/eltwise/binary_backward/embedding_bw/embedding_bw.py'
https://github.com/tenstorrent/tt-metal/tree/main/tests/sweep_framework
Expected behavior
For vectors where
output_dtype
andgrad_dtype
are different, test will fail with the message "Output and input gradient tensors must have the same dtype"The text was updated successfully, but these errors were encountered: