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: Clone + Backend, const D: usize> Clone for WeightDecayState<B, D>
impl<B: Clone + Backend, const D: usize> Clone for WeightDecayState<B, D>
Source§fn clone(&self) -> WeightDecayState<B, D>
fn clone(&self) -> WeightDecayState<B, D>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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>where
<B as Backend>::FloatTensorPrimitive: Freeze,
<B as Backend>::QuantizedTensorPrimitive: Freeze,
impl<B, const D: usize> RefUnwindSafe for WeightDecayState<B, D>where
<B as Backend>::FloatTensorPrimitive: RefUnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: 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> UnwindSafe for WeightDecayState<B, D>where
<B as Backend>::FloatTensorPrimitive: UnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)