Struct border_async_trainer::AsyncTrainerConfig
source · pub struct AsyncTrainerConfig {
pub model_dir: Option<String>,
pub record_interval: usize,
pub eval_interval: usize,
pub max_train_steps: usize,
pub save_interval: usize,
pub sync_interval: usize,
}
Expand description
Configuration of AsyncTrainer
Fields§
§model_dir: Option<String>
Where to save the trained model.
record_interval: usize
Interval of recording in training steps.
eval_interval: usize
Interval of evaluation in training steps.
max_train_steps: usize
The maximal number of training steps.
save_interval: usize
Interval of saving the model in optimization steps.
sync_interval: usize
Interval of synchronizing model parameters in training steps.
Implementations§
Trait Implementations§
source§impl Clone for AsyncTrainerConfig
impl Clone for AsyncTrainerConfig
source§fn clone(&self) -> AsyncTrainerConfig
fn clone(&self) -> AsyncTrainerConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AsyncTrainerConfig
impl Debug for AsyncTrainerConfig
source§impl<'de> Deserialize<'de> for AsyncTrainerConfig
impl<'de> Deserialize<'de> for AsyncTrainerConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AsyncTrainerConfig
impl Send for AsyncTrainerConfig
impl Sync for AsyncTrainerConfig
impl Unpin for AsyncTrainerConfig
impl UnwindSafe for AsyncTrainerConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more