浏览代码

Update ml-agents/mlagents/trainers/tests/torch/saver/test_saver_reward_providers.py

Co-authored-by: Ruo-Ping (Rachel) Dong <ruoping.dong@unity3d.com>
/develop/torch-save-rp
GitHub 4 年前
当前提交
4dda2983
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents/mlagents/trainers/tests/torch/saver/test_saver_reward_providers.py

2
ml-agents/mlagents/trainers/tests/torch/saver/test_saver_reward_providers.py


saver = TorchSaver(trainer_settings, path1)
saver.register(policy)
saver.register(optimizer)
saver.initialize_or_load(policy)
saver.initialize_or_load()
policy.set_step(2000)
saver.save_checkpoint("MockBrain", 2000)

正在加载...
取消
保存