I created a very simple autoencoder and have been looking to feed in data that I have converted from Numpy.  I found that when I convert from numpy “float” array using torch.from_numpy it gives me an array of  torch DoubleTensor.
When I feed this into my model it causes problems with the linear layer, giving the message:
torch.addmm received an invalid combination of arguments…
when I convert the torch double tensor to type float this error goes away.
Is this a bug or is it a requirement for only feed float and not double into the linear layer?
Sorry if this is an obvious question but I couldn’t see any notes in the documents covering this and I’m sure others will find the same issue at some time.