Can anyone explain what is going on here?
import torch
from torch.autograd import Variable
import numpy as np
x = Variable(torch.Tensor([3.0]),requires_grad=True)
b = np.float32(3)
b*x

Returns
Out[11]: 
array([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[Variable containing:
9
[torch.FloatTensor of size 1]
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]], dtype=object)


Casting b to a normal float on the other hand gives the expected result.