I’d recommend you printing the sizes of the tensors that you are multiplying.
There might be some broadcasting happening under the hood (for example, a 10000 tensor multiplied by a 10000 x 1 tensor, which would generate a 10000 x 10000 tensor as result)