garage.sampler.parallel_vec_env_executor module

Environment wrapper that runs multiple environments in parallel.

class ParallelVecEnvExecutor(env, n, max_path_length, scope=None)[source]

Bases: object

Environment wrapper that runs multiple environments in parallel.

action_space

Read / write the action space.

close()[source]

Close all environments.

num_envs

Read / write the number of environments.

observation_space

Read / write the observation space.

reset()[source]

Reset all environments.

step(action_n)[source]

Step all environments using the provided actions.

worker_init_envs(g, alloc, scope, env)[source]

Initialize the environment on a worker.

worker_run_reset(g, flags, scope)[source]

Reset the environment on a worker.

worker_run_step(g, action_n, scope)[source]

Step the environment on a worker.