浏览代码

fixed save_snapshot

/develop/self-playassym
Andrew Cohen 5 年前
当前提交
8fe1a27d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents/mlagents/trainers/ghost/trainer.py

2
ml-agents/mlagents/trainers/ghost/trainer.py


except AgentManagerQueue.Empty:
pass
if self.get_step - self.last_save > self.steps_between_save:
if self.get_step - self.last_save > self.steps_between_save and self.learning_behavior_name == self.global_learning_behavior_name:
self._save_snapshot(self.trainer.policy)
self.last_save = self.get_step

正在加载...
取消
保存