Mike2004:

thnn_mse_loss_forward not supported on CUDAType for Long


Yeah it’s saying you are having torch.Longtensors while passing to the MSE function.
So change the type of tensors to float .type(torch.FloatTensor) then pass