For example I can not multiply Variable and Tensor:
x = torch.FloatTensor([2])
y = Variable(torch.FloatTensor([2]))
x*y

TypeError                                 Traceback (most recent call last)
 in ()
----> 1 x*y
/home/andrei/anaconda2/lib/python2.7/site-packages/torch/tensor.pyc in mul(self, other)
319
320     def mul(self, other):
–> 321         return self.mul(other)
322     rmul = mul
323
TypeError: mul received an invalid combination of arguments - got (Variable), but expected one of:

(float value)
didn’t match because some of the arguments have invalid types: (Variable)
(torch.FloatTensor other)
didn’t match because some of the arguments have invalid types: (Variable)

I can not make Tensor directly differentiable neither:



x = torch.FloatTensor([2], requires_grad=True)
Traceback (most recent call last):
File “”, line 1, in 
RuntimeError: torch.FloatTensor constructor doesn’t accept any keyword arguments