We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc09267 commit fae15acCopy full SHA for fae15ac
stable_baselines3/her/her_replay_buffer.py
@@ -402,7 +402,7 @@ def truncate_last_trajectory(self) -> None:
402
self.dones[self.pos - 1, env_idx] = True
403
# make sure that last episodes can be sampled and
404
# update next episode start (self._current_ep_start)
405
- self._compute_episode_length(env_idx)
+ self._compute_episode_length(int(env_idx))
406
# handle infinite horizon tasks
407
if self.handle_timeout_termination:
408
self.timeouts[self.pos - 1, env_idx] = True # not an actual timeout, but it allows bootstrapping
0 commit comments