DeepRelight icon indicating copy to clipboard operation
DeepRelight copied to clipboard

problem when training!

Open karma08021206 opened this issue 3 years ago • 0 comments

thanks for the source, and I`m new in deep learning when training the model, I got an error that "Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same" which means that the model was not in gpu but when I add "model.to('cuda')" the transfer it to my gpu, I stack with another error says "Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!" how can I solve it? I run the code in centos7 with nvidia 2080ti

karma08021206 avatar Sep 03 '21 01:09 karma08021206