Struct burn_core::optim::decay::WeightDecay
source · pub struct WeightDecay<B: Backend> { /* private fields */ }Expand description
Weight decay implementation that transforms gradients.
Implementations§
source§impl<B: Backend> WeightDecay<B>
impl<B: Backend> WeightDecay<B>
sourcepub fn new(config: &WeightDecayConfig) -> Self
pub fn new(config: &WeightDecayConfig) -> Self
Creates a new weight decay from a config.
Auto Trait Implementations§
impl<B> RefUnwindSafe for WeightDecay<B>where <B as Backend>::FloatElem: RefUnwindSafe,
impl<B> Send for WeightDecay<B>
impl<B> Sync for WeightDecay<B>
impl<B> Unpin for WeightDecay<B>where <B as Backend>::FloatElem: Unpin,
impl<B> UnwindSafe for WeightDecay<B>where <B as Backend>::FloatElem: UnwindSafe,
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