pub struct TrainerConfig {
pub batch_size_per_device: usize,
pub gradient_clip: Option<f32>,
pub optimizer: OptimizerKind,
pub loss: LossKind,
}Fields§
§batch_size_per_device: usize§gradient_clip: Option<f32>§optimizer: OptimizerKind§loss: LossKindTrait Implementations§
Source§impl Clone for TrainerConfig
impl Clone for TrainerConfig
Source§fn clone(&self) -> TrainerConfig
fn clone(&self) -> TrainerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TrainerConfig
impl RefUnwindSafe for TrainerConfig
impl Send for TrainerConfig
impl Sync for TrainerConfig
impl Unpin for TrainerConfig
impl UnsafeUnpin for TrainerConfig
impl UnwindSafe for TrainerConfig
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