Skip to content

Commit

Permalink
Add kwargs to env creation to be compatible with api
Browse files Browse the repository at this point in the history
  • Loading branch information
idobrusin committed Oct 11, 2020
1 parent 9ab2fa5 commit badfc2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions a2c_ppo_acktr/envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
# pass


def make_env(env_id, seed, rank, log_dir, add_timestep, allow_early_resets):
def make_env(env_id, seed, rank, log_dir, add_timestep, allow_early_resets, **env_kwargs):
def _thunk():
env = gym.make(env_id)
env = gym.make(env_id, **env_kwargs)

env.seed(seed + rank)

Expand Down

0 comments on commit badfc2a

Please sign in to comment.