pub struct AdamWState<B: Backend, const D: usize> {
pub momentum: AdaptiveMomentumState<B, D>,
}Expand description
AdamW state.
Fields§
§momentum: AdaptiveMomentumState<B, D>Th current adaptive momentum state.
Implementations§
Source§impl<B: Backend, const D: usize> AdamWState<B, D>
impl<B: Backend, const D: usize> AdamWState<B, D>
Sourcepub fn new(momentum: AdaptiveMomentumState<B, D>) -> Self
pub fn new(momentum: AdaptiveMomentumState<B, D>) -> Self
Constructs a new AdamWState.
Trait Implementations§
Source§impl<B: Backend, const D: usize> Record<B> for AdamWState<B, D>
impl<B: Backend, const D: usize> Record<B> for AdamWState<B, D>
Source§type Item<S: PrecisionSettings> = AdamWStateItem<B, D, S>
type Item<S: PrecisionSettings> = AdamWStateItem<B, D, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B, const D: usize> Freeze for AdamWState<B, D>where
AdaptiveMomentumState<B, D>: Freeze,
impl<B, const D: usize> RefUnwindSafe for AdamWState<B, D>where
AdaptiveMomentumState<B, D>: RefUnwindSafe,
impl<B, const D: usize> Send for AdamWState<B, D>where
AdaptiveMomentumState<B, D>: Send,
impl<B, const D: usize> Sync for AdamWState<B, D>where
AdaptiveMomentumState<B, D>: Sync,
impl<B, const D: usize> Unpin for AdamWState<B, D>where
AdaptiveMomentumState<B, D>: Unpin,
impl<B, const D: usize> UnsafeUnpin for AdamWState<B, D>where
AdaptiveMomentumState<B, D>: UnsafeUnpin,
impl<B, const D: usize> UnwindSafe for AdamWState<B, D>where
AdaptiveMomentumState<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