pub struct RiemannianAdamState<B: Backend, const D: usize> {
pub step: usize,
pub exp_avg: Tensor<B, D>,
pub exp_avg_sq: Tensor<B, D>,
pub max_exp_avg_sq: Option<Tensor<B, D>>,
/* private fields */
}Expand description
State for Riemannian Adam optimizer
Fields§
§step: usize§exp_avg: Tensor<B, D>§exp_avg_sq: Tensor<B, D>§max_exp_avg_sq: Option<Tensor<B, D>>Trait Implementations§
Source§impl<B: Clone + Backend, const D: usize> Clone for RiemannianAdamState<B, D>
impl<B: Clone + Backend, const D: usize> Clone for RiemannianAdamState<B, D>
Source§fn clone(&self) -> RiemannianAdamState<B, D>
fn clone(&self) -> RiemannianAdamState<B, D>
Returns a duplicate of the value. Read more
1.0.0 · Source§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 RiemannianAdamState<B, D>
impl<B: Backend, const D: usize> Record<B> for RiemannianAdamState<B, D>
Source§type Item<S: PrecisionSettings> = RiemannianAdamStateItem<B, D, S>
type Item<S: PrecisionSettings> = RiemannianAdamStateItem<B, D, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B, const D: usize> Freeze for RiemannianAdamState<B, D>where
<B as Backend>::FloatTensorPrimitive: Freeze,
<B as Backend>::QuantizedTensorPrimitive: Freeze,
impl<B, const D: usize> RefUnwindSafe for RiemannianAdamState<B, D>where
<B as Backend>::FloatTensorPrimitive: RefUnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B, const D: usize> Send for RiemannianAdamState<B, D>
impl<B, const D: usize> Sync for RiemannianAdamState<B, D>
impl<B, const D: usize> Unpin for RiemannianAdamState<B, D>
impl<B, const D: usize> UnwindSafe for RiemannianAdamState<B, D>where
<B as Backend>::FloatTensorPrimitive: UnwindSafe,
<B as Backend>::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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more