pub struct AdanState<B: Backend, const D: usize> {
pub momentum: AdaptiveNesterovMomentumState<B, D>,
}Expand description
Adan state.
Fields§
§momentum: AdaptiveNesterovMomentumState<B, D>The current adaptive Nesterov momentum state.
Implementations§
Trait Implementations§
Source§impl<B: Backend, const D: usize> Record<B> for AdanState<B, D>
impl<B: Backend, const D: usize> Record<B> for AdanState<B, D>
Source§type Item<S: PrecisionSettings> = AdanStateItem<B, D, S>
type Item<S: PrecisionSettings> = AdanStateItem<B, D, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B, const D: usize> Freeze for AdanState<B, D>where
<B as BackendTypes>::FloatTensorPrimitive: Freeze,
<B as BackendTypes>::QuantizedTensorPrimitive: Freeze,
impl<B, const D: usize> RefUnwindSafe for AdanState<B, D>where
<B as BackendTypes>::FloatTensorPrimitive: RefUnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B, const D: usize> Send for AdanState<B, D>
impl<B, const D: usize> Sync for AdanState<B, D>
impl<B, const D: usize> Unpin for AdanState<B, D>where
<B as BackendTypes>::FloatTensorPrimitive: Unpin,
<B as BackendTypes>::QuantizedTensorPrimitive: Unpin,
impl<B, const D: usize> UnsafeUnpin for AdanState<B, D>where
<B as BackendTypes>::FloatTensorPrimitive: UnsafeUnpin,
<B as BackendTypes>::QuantizedTensorPrimitive: UnsafeUnpin,
impl<B, const D: usize> UnwindSafe for AdanState<B, D>where
<B as BackendTypes>::FloatTensorPrimitive: UnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: 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