pub struct SgdState<B: Backend, const D: usize> {
pub momentum: Option<MomentumState<B, D>>,
}Expand description
State of Sgd.
Fields§
§momentum: Option<MomentumState<B, D>>The current state of the momentum (if any).
Implementations§
Trait Implementations§
Source§impl<B: Backend, const D: usize> Record<B> for SgdState<B, D>
impl<B: Backend, const D: usize> Record<B> for SgdState<B, D>
Source§type Item<S: PrecisionSettings> = SgdStateItem<B, D, S>
type Item<S: PrecisionSettings> = SgdStateItem<B, D, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B, const D: usize> Freeze for SgdState<B, D>where
<B as Backend>::FloatTensorPrimitive: Freeze,
<B as Backend>::QuantizedTensorPrimitive: Freeze,
impl<B, const D: usize> RefUnwindSafe for SgdState<B, D>where
<B as Backend>::FloatTensorPrimitive: RefUnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B, const D: usize> Send for SgdState<B, D>
impl<B, const D: usize> Sync for SgdState<B, D>
impl<B, const D: usize> Unpin for SgdState<B, D>
impl<B, const D: usize> UnwindSafe for SgdState<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)