Function train_parallel

Source
pub fn train_parallel<T, E>(
    agent: &mut T,
    environment: &E,
    config: &TrainParallelConfig,
    rng_env: &mut Prng,
    rng_agent: &mut Prng,
    logger: &mut dyn StatsLogger,
)
Expand description

Train a batch learning agent in parallel across several threads.

The logger is used by the main thread for agent updates as well as by one of the worker threads for action and step logs.