Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Feb 24, 2025
1 parent 348558c commit 8ae33aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion torchrl/collectors/collectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,8 @@ def _maybe_make_final_rollout(self, make_rollout: bool):
if key in self._final_rollout.keys(True):
continue
self._final_rollout.set(key, spec.zero())

elif not make_rollout and hasattr(self.policy, "out_keys") and self.policy.out_keys:
self._policy_output_keys = list(self.policy.out_keys)
else:
if make_rollout:
# otherwise, we perform a small number of steps with the policy to
Expand Down

0 comments on commit 8ae33aa

Please sign in to comment.