In numpy, * operator is element wise multiplication (similar to the Hadamard product for arrays of the same dimension), not matrix multiply as per this 15.
When I used * operation with two torch.cuda.FloatTensor A and B , results torch.cuda.FloatTensor C
>>> A.size()
(131072, 3)
>>> B.size()
(131072, 1) 
>>> C = A * B 
>>> C.size()
(131072, 3)

What operation is happening here between A and B ?


not matrix multiplication A.size(1) not equal B.size(0)


not element wise multiplication A.size() not equal B.size()