Skip to content

Commit bbf2f4c

Browse files
committed
Log actor_steps counter with snapshot.
1 parent b4123b4 commit bbf2f4c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flybody/agents/learning_dmpo.py

+3
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ def step(self):
335335

336336
if self._snapshotter is not None:
337337
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']
338341
# Increment the snapshot counter (directly in the snapshotter's path).
339342
for path in list(self._snapshotter._snapshots.keys()):
340343
snapshot = self._snapshotter._snapshots[path] # noqa: F841

0 commit comments

Comments
 (0)