RuntimeError: expected type torch.DoubleTensor but got torch.FloatTensor
“RuntimeError: expected type expect backend CPU and Double but got backend CPU and dtype Float”
解决方法: 在输入端添加.float()
RuntimeError: expected type torch.DoubleTensor but got torch.FloatTensor
“RuntimeError: expected type expect backend CPU and Double but got backend CPU and dtype Float”
解决方法: 在输入端添加.float()