Trait SyncModel

Source
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§