yunjey / pytorch-tutorial

PyTorch Tutorial for Deep Learning Researchers
MIT License
30.36k stars 8.14k forks source link

Cuda is true why don`t use it? #249

Open usemyhand opened 1 year ago

usemyhand commented 1 year ago

RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_locatio n=torch.device('cpu') to map your storages to the CPU.