Open uazizTT opened 2 weeks ago
Please attach a pytest to reproduce this exact case.
Also, note that the workaround we currently have for broadcasting is to use the ttnn.bcast. For example https://github.com/tenstorrent/tt-metal/blob/main/models/demos/t3000/falcon40b/tt/model_utils.py#L504
TTNN throws the following exception when trying to broadcast second operand of a binary op:
RuntimeError: TT_THROW @ tt-metal/src/tt-metal/ttnn/cpp/ttnn/operations/eltwise/binary/device/binary_device_operation.cpp:46: tt::exception
TT_THROW("ttnn::operations::binary::BinaryDeviceOperation: unsupported broadcast");
Apply canonicalization on the operands or allow broadcasting for all operands.