RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is Fal

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.

gpu训练后的模型在无gpu机器上面载入参数的时候
需要设置torch.load(map_loction=torch.device('cpu'))
上一篇:[UE4]打包发布WIN64位,运行时提示缺少插件解决方法Plugin ‘‘ failed to load because module ‘‘ could not be found.


下一篇:TensorFlow数据集项目