border_async_trainer/
sync_model.rs

1/// Synchronizes the model of the agent in asynchronous training.
2pub trait SyncModel {
3    /// Information of the model.
4    type ModelInfo: Clone;
5
6    /// Get `ModelInfo`.
7    ///
8    /// The first element of the return value is the number of optimization steps.
9    fn model_info(&self) -> (usize, Self::ModelInfo);
10
11    /// Synchronizes the model.
12    fn sync_model(&mut self, model_info: &Self::ModelInfo);
13}