pub struct RmsPropState<B: Backend, const D: usize> {
pub square_avg: SquareAvgState<B, D>,
pub centered: CenteredState<B, D>,
pub momentum: Option<RmsPropMomentumState<B, D>>,
}Expand description
State of RmsProp
Fields§
§square_avg: SquareAvgState<B, D>Current squared average state.
centered: CenteredState<B, D>Current centered state
momentum: Option<RmsPropMomentumState<B, D>>Current gradient momentum, if any.
Implementations§
Source§impl<B: Backend, const D: usize> RmsPropState<B, D>
impl<B: Backend, const D: usize> RmsPropState<B, D>
Sourcepub fn new(
square_avg: SquareAvgState<B, D>,
centered: CenteredState<B, D>,
momentum: Option<RmsPropMomentumState<B, D>>,
) -> Self
pub fn new( square_avg: SquareAvgState<B, D>, centered: CenteredState<B, D>, momentum: Option<RmsPropMomentumState<B, D>>, ) -> Self
Constructs a new RmsPropState.
Trait Implementations§
Source§impl<B: Clone + Backend, const D: usize> Clone for RmsPropState<B, D>
impl<B: Clone + Backend, const D: usize> Clone for RmsPropState<B, D>
Source§fn clone(&self) -> RmsPropState<B, D>
fn clone(&self) -> RmsPropState<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 RmsPropState<B, D>
impl<B: Backend, const D: usize> Record<B> for RmsPropState<B, D>
Source§type Item<S: PrecisionSettings> = RmsPropStateItem<B, D, S>
type Item<S: PrecisionSettings> = RmsPropStateItem<B, D, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B, const D: usize> Freeze for RmsPropState<B, D>where
<B as Backend>::FloatTensorPrimitive: Freeze,
<B as Backend>::QuantizedTensorPrimitive: Freeze,
impl<B, const D: usize> RefUnwindSafe for RmsPropState<B, D>where
<B as Backend>::FloatTensorPrimitive: RefUnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B, const D: usize> Send for RmsPropState<B, D>
impl<B, const D: usize> Sync for RmsPropState<B, D>
impl<B, const D: usize> Unpin for RmsPropState<B, D>
impl<B, const D: usize> UnwindSafe for RmsPropState<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)