ttnn.sub_bw binary doesn't support ROW_MAJOR layout despite what it says in the documentation. When any/all of the input tensors have ROW_MAJOR layout, the FATAL error "Inputs to eltwise binary must be tilized" is thrown.
To Reproduce
Steps to reproduce the behavior:
Sweep test for sub_bw is located in 'tests/sweep_framework/sweeps/eltwise/binary_backward/sub_bw/sub_bw.py'
Checkout branch amalbasaTT/backward_ops-sweeps-4
Go to 'tests/sweep_framework/sweeps/eltwise/binary_backward/sub_bw/sub_bw.py'
Remove next lines of code from the invalidate_vector function:
if test_vector["input_layout"] == ttnn.ROW_MAJOR_LAYOUT:
return True, "Inputs to eltwise binary must be tilized"
Generate new parameter vectors and run the sweep test
ttnn.sub_bw binary doesn't support ROW_MAJOR layout despite what it says in the documentation. When any/all of the input tensors have ROW_MAJOR layout, the FATAL error "Inputs to eltwise binary must be tilized" is thrown.
To Reproduce Steps to reproduce the behavior: Sweep test for sub_bw is located in 'tests/sweep_framework/sweeps/eltwise/binary_backward/sub_bw/sub_bw.py'
https://github.com/tenstorrent/tt-metal/tree/main/tests/sweep_framework
Expected behavior For vectors with
input_layout
being ROW_MAJOR_LAYOUT, test will fail with the message "inputs to eltwise binary must be tilized"