pub struct AdaGradState<B: Backend, const D: usize> { /* private fields */ }Expand description
AdaGrad state.
Implementations§
Source§impl<B: Backend, const D: usize> AdaGradState<B, D>
impl<B: Backend, const D: usize> AdaGradState<B, D>
Sourcepub fn new(lr_decay: LrDecayState<B, D>) -> Self
pub fn new(lr_decay: LrDecayState<B, D>) -> Self
Constructs a new AdaGradState.
Trait Implementations§
Source§impl<B: Backend, const D: usize> Record<B> for AdaGradState<B, D>
impl<B: Backend, const D: usize> Record<B> for AdaGradState<B, D>
Source§type Item<S: PrecisionSettings> = AdaGradStateItem<B, D, S>
type Item<S: PrecisionSettings> = AdaGradStateItem<B, D, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B, const D: usize> Freeze for AdaGradState<B, D>where
LrDecayState<B, D>: Freeze,
impl<B, const D: usize> RefUnwindSafe for AdaGradState<B, D>where
LrDecayState<B, D>: RefUnwindSafe,
impl<B, const D: usize> Send for AdaGradState<B, D>where
LrDecayState<B, D>: Send,
impl<B, const D: usize> Sync for AdaGradState<B, D>where
LrDecayState<B, D>: Sync,
impl<B, const D: usize> Unpin for AdaGradState<B, D>where
LrDecayState<B, D>: Unpin,
impl<B, const D: usize> UnsafeUnpin for AdaGradState<B, D>where
LrDecayState<B, D>: UnsafeUnpin,
impl<B, const D: usize> UnwindSafe for AdaGradState<B, D>where
LrDecayState<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