Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
GPU Related Issues and Solutions
Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same
This means that the input data and the model are on different devices (CPU and CUDA). Moving them to the same device resolves the issue. Please refer to Move a Tensor to a Specific Device in PyTorch on how to move a Tensor to a specific device.
https://discuss.pytorch.org/t/input-type-torch-floattensor-and-weight-type-torch-cuda-floattensor-should-be-the-same/48633