We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4123b4 commit bbf2f4cCopy full SHA for bbf2f4c
flybody/agents/learning_dmpo.py
@@ -335,6 +335,9 @@ def step(self):
335
336
if self._snapshotter is not None:
337
if self._snapshotter.save():
338
+ # Log at what actor_steps this snapshot was saved.
339
+ if 'actor_steps' in fetches:
340
+ fetches['saved_snapshot_at_actor_steps'] = fetches['actor_steps']
341
# Increment the snapshot counter (directly in the snapshotter's path).
342
for path in list(self._snapshotter._snapshots.keys()):
343
snapshot = self._snapshotter._snapshots[path] # noqa: F841
0 commit comments