pub enum OptimizerType {
Sgd {
learning_rate: f32,
momentum: f32,
},
Adam {
learning_rate: f32,
beta1: f32,
beta2: f32,
epsilon: f32,
},
}Expand description
Optimizer types
Variants§
Trait Implementations§
Source§impl Clone for OptimizerType
impl Clone for OptimizerType
Source§fn clone(&self) -> OptimizerType
fn clone(&self) -> OptimizerType
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for OptimizerType
impl RefUnwindSafe for OptimizerType
impl Send for OptimizerType
impl Sync for OptimizerType
impl Unpin for OptimizerType
impl UnwindSafe for OptimizerType
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