pub trait SyncModel {
    type ModelInfo: Clone;

    // Required methods
    fn model_info(&self) -> (usize, Self::ModelInfo);
    fn sync_model(&mut self, model_info: &Self::ModelInfo);
}
Expand description

Synchronizes the model of the agent in asynchronous training.

Required Associated Types§

source

type ModelInfo: Clone

Information of the model.

Required Methods§

source

fn model_info(&self) -> (usize, Self::ModelInfo)

Get ModelInfo.

The first element of the return value is the number of optimization steps.

source

fn sync_model(&mut self, model_info: &Self::ModelInfo)

Synchronizes the model.

Implementors§