mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
Fixes for having NumpySharedRunningStats syncing on multi-node (#139)
1. Having the standard checkpoint prefix in order for the data store to grab it, and sync it to S3. 2. Removing the reference to Redis so that it won't try to pickle that in. 3. Enable restoring a checkpoint into a single-worker run, which was saved by a single-node-multiple-worker run.
This commit is contained in:
@@ -389,8 +389,8 @@ class CompositeAgent(AgentInterface):
|
||||
# probably better to only return the agents' goal_reached decisions.
|
||||
return episode_ended
|
||||
|
||||
def save_checkpoint(self, checkpoint_id: int) -> None:
|
||||
[agent.save_checkpoint(checkpoint_id) for agent in self.agents.values()]
|
||||
def save_checkpoint(self, checkpoint_prefix: str) -> None:
|
||||
[agent.save_checkpoint(checkpoint_prefix) for agent in self.agents.values()]
|
||||
|
||||
def restore_checkpoint(self, checkpoint_dir: str) -> None:
|
||||
[agent.restore_checkpoint(checkpoint_dir) for agent in self.agents.values()]
|
||||
|
||||
Reference in New Issue
Block a user