garage.tf.samplers.batch_sampler module¶
Collects samples in parallel using a stateful pool of workers.
-
class
BatchSampler
(algo, env, n_envs)[source]¶ Bases:
garage.sampler.sampler_deprecated.BaseSampler
Collects samples in parallel using a stateful pool of workers.
Parameters: - algo (garage.np.algos.RLAlgorithm) – The algorithm.
- env (gym.Env) – The environment.
- n_envs (int) – Number of environments.