1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-17 19:20:19 +01:00

Save filters' internal state (#127)

* save filters internal state

* moving the restore to be made from within NumpyRunningStats
This commit is contained in:
Gal Leibovich
2018-11-20 17:21:48 +02:00
committed by GitHub
parent 67eb9e4c28
commit a112ee69f6
13 changed files with 173 additions and 14 deletions

View File

@@ -255,6 +255,13 @@ class LevelManager(EnvironmentInterface):
"""
[agent.save_checkpoint(checkpoint_id) for agent in self.agents.values()]
def restore_checkpoint(self, checkpoint_dir: str) -> None:
"""
Restores checkpoints of the networks of all agents
:return: None
"""
[agent.restore_checkpoint(checkpoint_dir) for agent in self.agents.values()]
def sync(self) -> None:
"""
Sync the networks of the agents with the global network parameters