最佳答案
如何在PyTorch中保存训练好的模型?我读到过:
torch.save()/torch.load()用于保存/加载可序列化对象。model.state_dict()/model.load_state_dict()用于保存/加载模型状态。