pub struct WeightDecayState<B: Backend, const D: usize> { /* private fields */ }Expand description
State of weight decay.
Implementations§
Source§impl<B: Backend, const D: usize> WeightDecayState<B, D>
impl<B: Backend, const D: usize> WeightDecayState<B, D>
Trait Implementations§
Source§impl<B: Backend, const D: usize> Record<B> for WeightDecayState<B, D>
impl<B: Backend, const D: usize> Record<B> for WeightDecayState<B, D>
Source§type Item<S: PrecisionSettings> = WeightDecayStateItem<B, D, S>
type Item<S: PrecisionSettings> = WeightDecayStateItem<B, D, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B, const D: usize> Freeze for WeightDecayState<B, D>
impl<B, const D: usize> RefUnwindSafe for WeightDecayState<B, D>where
Tensor<B, D>: RefUnwindSafe,
impl<B, const D: usize> Send for WeightDecayState<B, D>
impl<B, const D: usize> Sync for WeightDecayState<B, D>
impl<B, const D: usize> Unpin for WeightDecayState<B, D>
impl<B, const D: usize> UnsafeUnpin for WeightDecayState<B, D>where
Tensor<B, D>: UnsafeUnpin,
impl<B, const D: usize> UnwindSafe for WeightDecayState<B, D>where
Tensor<B, D>: 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