RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is F..
今天在HPC上跑的方法疯狂报错RuntimeError:AttemptingtodeserializeobjectonaCUDAdevicebuttorch.cuda.is_available()isFalse.IfyouarerunningonaCPU-onlymachine,pleaseusetorch.loadwithmap_location=torch.device(‘cpu’)tomap