# torch.save(Modul.state_dict(),store_dir)#保存训练模型
torch.save(Modul,store_dir)#上面的只保存了参数 测试时会'collections.OrderedDict' object has no attribute 'forward'
RT#上面的只保存了参数 测试时会'collections.OrderedDict' object has no attribute 'forward'
# torch.save(Modul.state_dict(),store_dir)#保存训练模型
torch.save(Modul,store_dir)#上面的只保存了参数 测试时会'collections.OrderedDict' object has no attribute 'forward'
RT#上面的只保存了参数 测试时会'collections.OrderedDict' object has no attribute 'forward'