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

[Bug Report] Nonsharded Add operation doesn't work then second parameter is scalar and dtype of input vector is int32 #17019

Open
bfilipovicTT opened this issue Jan 23, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@bfilipovicTT
Copy link
Contributor

Describe the bug
Nonsharded Add operation doesn't work then second parameter is scalar and dtype of input vector is int32.
so for example
ttnn.add(input_a, 10) //where dtype of input_a is ttnn.int32 would not produce the desired results

To Reproduce

Steps to reproduce the behavior:
Sweep test for add is located in 'tests/sweep_framework/sweeps/eltwise/binary/add/add_unary.py'

Checkout branch bfilipovicTT/eltwise-binary-sweeps-1

Generate new parameter vectors and run the sweep test

python3 tests/sweep_framework/sweeps_parameter_generator.py --elastic cloud --module-name eltwise.binary.add.add_unary
python3 tests/sweep_framework/sweeps_runner.py --elastic cloud --module-name eltwise.binary.add.add_unary --suite-name nightl

Screenshots

Image
as you can see, the tensor above is result of ttnn.add, tensor bellow is the expected result gotten from torch.add (only first 6 elements of tensor are shown)

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

No branches or pull requests

1 participant