Skip to content

Commit

Permalink
comment step async about seed and option
Browse files Browse the repository at this point in the history
  • Loading branch information
qgallouedec committed Apr 17, 2024
1 parent 2090268 commit dd7c83b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stable_baselines3/common/vec_env/subproc_vec_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def __init__(self, env_fns: List[Callable[[], gym.Env]], start_method: Optional[

def step_async(self, actions: np.ndarray) -> None:
for remote, action, seed, option in zip(self.remotes, actions, self._seeds, self._options):
# seed and option are used if step triggers a reset
remote.send(("step", (action, seed, option)))
self.waiting = True

Expand Down

0 comments on commit dd7c83b

Please sign in to comment.