pub struct ActorManager<A, E, R, P> where
    A: Agent<E, R> + SyncModel,
    E: Env,
    P: StepProcessorBase<E>,
    R: ReplayBufferBase<PushedItem = P::Output>, 
{ /* private fields */ }
Expand description

Manages Actors.

This struct handles the following requests:

  • From the LearnerManager for updating the latest model info, stored in this struct.
  • From the Actors for getting the latest model info.
  • From the Actors for pushing sample batch to the LearnerManager.

Implementations

Builds a ActorManager.

Runs threads for Actors and a thread for sending samples into the replay buffer.

A thread will wait for the initial SyncModel::ModelInfo from AsyncTrainer, which blocks execution of Actor threads.

Waits until all actors finish.

Stops actor threads.

Stops and joins actors.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.