pub struct AdamState<B: Backend, T: Float> {
pub count: I32<B>,
pub mu: Vec<Array<B, T>>,
pub nu: Vec<Array<B, T>>,
}Expand description
The state of ScaleByAdam (optax.ScaleByAdamState).
Fields§
§count: I32<B>The number of updates.
mu: Vec<Array<B, T>>The first moments.
nu: Vec<Array<B, T>>The second moments.
Trait Implementations§
Source§impl<B: Backend, T: Float> Tree<B> for AdamState<B, T>
impl<B: Backend, T: Float> Tree<B> for AdamState<B, T>
Source§fn unflatten_like(
&self,
leaves: &mut dyn Iterator<Item = <B as Backend>::Leaf>,
) -> Self
fn unflatten_like( &self, leaves: &mut dyn Iterator<Item = <B as Backend>::Leaf>, ) -> Self
Builds a value of the same structure from leaves.
Auto Trait Implementations§
impl<B, T> Freeze for AdamState<B, T>
impl<B, T> RefUnwindSafe for AdamState<B, T>
impl<B, T> Send for AdamState<B, T>
impl<B, T> Sync for AdamState<B, T>
impl<B, T> Unpin for AdamState<B, T>
impl<B, T> UnsafeUnpin for AdamState<B, T>
impl<B, T> UnwindSafe for AdamState<B, T>
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