pytorch RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available
报错:
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_location=torch.device(‘cpu’) to map your storages to the CPU分析原因:
1、在加载mode
原创
2022-07-08 18:09:25 ·
3416 阅读 ·
2 评论