mul¶
torch.mul(input, other, *, out=None) → Tensor
input * other
Multiplies input by other element-wise (tensor or scalar).
Parameters¶
- input (
Tensor) – First operand. - other (
Tensor or Number) – Second operand.
Shape¶
- Output: broadcast shape
Example¶
y = a * b