Given two tensors A and B you can use either:
A * Btorch.mul(A, B)A.mul(B)
Note: for matrix multiplication, you want to use A @ B which is equivalent to torch.matmul().
Given two tensors A and B you can use either:
A * Btorch.mul(A, B)A.mul(B)Note: for matrix multiplication, you want to use A @ B which is equivalent to torch.matmul().