pub struct RiemannianAdamStateItem<B: Backend, const D: usize, S: PrecisionSettings> {
pub step: <usize as Record<B>>::Item<S>,
pub exp_avg: <Tensor<B, D> as Record<B>>::Item<S>,
pub exp_avg_sq: <Tensor<B, D> as Record<B>>::Item<S>,
pub max_exp_avg_sq: <Option<Tensor<B, D>> as Record<B>>::Item<S>,
pub lr_decay: <LrDecayState<B, D> as Record<B>>::Item<S>,
}Expand description
The record item type for the module.
Fields§
§step: <usize as Record<B>>::Item<S>Field to be serialized.
exp_avg: <Tensor<B, D> as Record<B>>::Item<S>Field to be serialized.
exp_avg_sq: <Tensor<B, D> as Record<B>>::Item<S>Field to be serialized.
max_exp_avg_sq: <Option<Tensor<B, D>> as Record<B>>::Item<S>Field to be serialized.
lr_decay: <LrDecayState<B, D> as Record<B>>::Item<S>Field to be serialized.
Trait Implementations§
Source§impl<'de, B: Backend, const D: usize, S: PrecisionSettings> Deserialize<'de> for RiemannianAdamStateItem<B, D, S>where
<usize as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<Tensor<B, D> as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<Option<Tensor<B, D>> as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<LrDecayState<B, D> as Record<B>>::Item<S>: Serialize + DeserializeOwned,
impl<'de, B: Backend, const D: usize, S: PrecisionSettings> Deserialize<'de> for RiemannianAdamStateItem<B, D, S>where
<usize as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<Tensor<B, D> as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<Option<Tensor<B, D>> as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<LrDecayState<B, D> as Record<B>>::Item<S>: Serialize + DeserializeOwned,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<B: Backend, const D: usize, S: PrecisionSettings> Serialize for RiemannianAdamStateItem<B, D, S>where
<usize as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<Tensor<B, D> as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<Option<Tensor<B, D>> as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<LrDecayState<B, D> as Record<B>>::Item<S>: Serialize + DeserializeOwned,
impl<B: Backend, const D: usize, S: PrecisionSettings> Serialize for RiemannianAdamStateItem<B, D, S>where
<usize as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<Tensor<B, D> as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<Option<Tensor<B, D>> as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<LrDecayState<B, D> as Record<B>>::Item<S>: Serialize + DeserializeOwned,
Auto Trait Implementations§
impl<B, const D: usize, S> Freeze for RiemannianAdamStateItem<B, D, S>
impl<B, const D: usize, S> RefUnwindSafe for RiemannianAdamStateItem<B, D, S>
impl<B, const D: usize, S> Send for RiemannianAdamStateItem<B, D, S>
impl<B, const D: usize, S> Sync for RiemannianAdamStateItem<B, D, S>
impl<B, const D: usize, S> Unpin for RiemannianAdamStateItem<B, D, S>
impl<B, const D: usize, S> UnwindSafe for RiemannianAdamStateItem<B, D, S>
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> 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