I have
torch::Tensor c = torch::mm(a, b);

Where a is of shape [30,1000] and b is of shape [1000]
On running I get:
RuntimeError: mat2 must be a matrix

But matrix multiplication of [30,1000] and [1000] should be valid and result in a tensor of shape [30], if I’m not missing something…