Hello all,
I’ve never worked with Torch, only tf/th…, but the workflow seemed very pleasant to me so I decided try to learn. I know that pytorch is a very new project but it would be neat if one writes a “pytorch for dummies”.
For instance, the fallowing code results in error:
(class model above)
    self.affine1(10, 100)
(...)

x = np.random.random(10)
ipt = torch.from_numpy(x)
probs = model(Variable(ipt))

Then
TypeError: addmm_ received an invalid combination of arguments - got (int, int, torch.DoubleTensor, torch.FloatTensor), but expected one of:
 * (torch.DoubleTensor mat1, torch.DoubleTensor mat2)
(...)

How is the proper data preparation in pytorch?
Thanks in advance and looking forward to use pytorch (the performance of the cart pole in openai gym was better than with other frameworks).
Obs: As I didn’t saw any other mechanic-ish question topic, nor a question flag, hope that is not off topic for the forum.