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§
Source§impl Clone for WeightDecay
impl Clone for WeightDecay
Source§fn clone(&self) -> WeightDecay
fn clone(&self) -> WeightDecay
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 WeightDecay
impl RefUnwindSafe for WeightDecay
impl Send for WeightDecay
impl Sync for WeightDecay
impl Unpin 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