TypeError: addmm_ received an invalid combination of arguments - got (int, int, torch.DoubleTensor, torch.FloatTensor)

how to solve this error?

Use .float() to convert your tensor array to Float.
That pretty much fixes the error

x = Variable(tensor.from_numpy(x).float())
3 Likes