pub struct Sgd {
pub lr: Float,
pub weight_decay: Float,
}Fields§
§lr: Float§weight_decay: FloatImplementations§
Trait Implementations§
Source§impl Optimizer for Sgd
impl Optimizer for Sgd
fn update_parameter( &mut self, _slot: usize, params: &mut [Float], grads: &[Float], scale: Float, )
fn begin_step(&mut self)
impl Copy for Sgd
Auto Trait Implementations§
impl Freeze for Sgd
impl RefUnwindSafe for Sgd
impl Send for Sgd
impl Sync for Sgd
impl Unpin for Sgd
impl UnsafeUnpin for Sgd
impl UnwindSafe for Sgd
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