Please use torch.load with map_location=torch.device(‘cpu‘),If you are running on a CPU-only machine
在CPU中运行GPU程序,出现以下问题IfyouarerunningonaCPU-onlymachine,pleaseusetorch.loadwithmap_location=torch.device('cpu')tomapyourstoragestotheCPU.问题RuntimeError:AttemptingtodeserializeobjectonaCUDAdevicebuttorch.