This is different from element-wise multiplication.
torch.matmul(tensor, tensor)
torch.mm(tensor, tensor)
Can also use the “@” symbol, but not recommended.(By contrast, using “*” symbol to implement element-wise multiplication is more common than using built-in function like mul() )
tensor @ tensor