一、一块GPU训练的模型: 保存 torch.save(model.state_dict(), PATH) 保存的keys格式如下: 加载到一块GPU/CPU的方法: device = torch.device