pub struct WeightDecay { /* private fields */ }Expand description
Weight decay implementation that transforms gradients.
Implementations§
Source§impl WeightDecay
impl WeightDecay
Sourcepub fn new(config: &WeightDecayConfig) -> Self
pub fn new(config: &WeightDecayConfig) -> Self
Creates a new weight decay from a config.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WeightDecay
impl RefUnwindSafe for WeightDecay
impl Send for WeightDecay
impl Sync for WeightDecay
impl Unpin for WeightDecay
impl UnsafeUnpin for WeightDecay
impl UnwindSafe for WeightDecay
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