Trait border_async_trainer::SyncModel
source · [−]pub trait SyncModel {
type ModelInfo: Clone;
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.
Associated Types
Required methods
Get ModelInfo
.
The first element of the return value is the number of optimization steps.
fn sync_model(&mut self, model_info: &Self::ModelInfo)
fn sync_model(&mut self, model_info: &Self::ModelInfo)
Synchronizes the model.