Trait border_async_trainer::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§
Required Methods§
sourcefn model_info(&self) -> (usize, Self::ModelInfo)
fn model_info(&self) -> (usize, Self::ModelInfo)
Get ModelInfo
.
The first element of the return value is the number of optimization steps.
sourcefn sync_model(&mut self, model_info: &Self::ModelInfo)
fn sync_model(&mut self, model_info: &Self::ModelInfo)
Synchronizes the model.