Hi,
I ma trying to compute this multiplication of a vector with a matrix:
f=torch.tensor([[-1.],[1]])
r=torch.tensor([[11.,21],[21,22]])
f.matmul( r )
However I am getting this error:
size mismatch, m1: [2 x 1], m2: [2 x 2] at c:\programdata\miniconda3\conda-bld\pytorch-cpu_1524541161962\work\aten\src\th\generic/THTensorMath.c:2033
What works and produces the right result is:
f=torch.tensor([[-1.,0],[1,0]])
r=torch.tensor([[11.,21],[21,22]])
f.matmul( r )
I tried using mm() and mv()  with similar results. Is there an alternative?
Is there an easy way to expand f adding 0?
Thanks,
Alberto