w = torch.randn(1,2)
c =  torch.randn(2,1)
f1 = torch.mul(c,w)
f2 = torch.mul(w,c)
print(f1,f2)

Blockquote
tensor([[ 3.7364, -1.2104],
[ 1.6452, -0.5330]])
tensor([[ 3.7364, -1.2104],
[ 1.6452, -0.5330]])
Blockquote

why f1 and f2 are the same?
is the matrix dimension compatible?