pub enum Optimizer {
Sgd,
SgdMomentum {
momentum: f32,
},
Adam {
beta1: f32,
beta2: f32,
eps: f32,
},
}Expand description
Optimizer choice for training.
Variants§
Implementations§
Trait Implementations§
impl Copy for Optimizer
impl StructuralPartialEq for Optimizer
Auto Trait Implementations§
impl Freeze for Optimizer
impl RefUnwindSafe for Optimizer
impl Send for Optimizer
impl Sync for Optimizer
impl Unpin for Optimizer
impl UnwindSafe for Optimizer
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