Is it maybe a documentation error and it meant to say the opposite, like your model correctly wants a torch.cuda.FloatTensor but got a torch.DoubleTensor from the training data.

This make sense, i have the same feeling, the document may be wrong.