Struct burn_core::optim::AdamWStateItem
source · pub struct AdamWStateItem<B: Backend, const D: usize, S: PrecisionSettings> {
pub momentum: <AdaptiveMomentumWState<B, D> as Record>::Item<S>,
}Expand description
The record item type for the module.
Fields§
§momentum: <AdaptiveMomentumWState<B, D> as Record>::Item<S>Field to be serialized.
Trait Implementations§
source§impl<B: Clone + Backend, const D: usize, S: Clone + PrecisionSettings> Clone for AdamWStateItem<B, D, S>
impl<B: Clone + Backend, const D: usize, S: Clone + PrecisionSettings> Clone for AdamWStateItem<B, D, S>
source§fn clone(&self) -> AdamWStateItem<B, D, S>
fn clone(&self) -> AdamWStateItem<B, D, S>
Returns a copy 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: Debug + Backend, const D: usize, S: Debug + PrecisionSettings> Debug for AdamWStateItem<B, D, S>
impl<B: Debug + Backend, const D: usize, S: Debug + PrecisionSettings> Debug for AdamWStateItem<B, D, S>
source§impl<'de, B: Backend, const D: usize, S: PrecisionSettings> Deserialize<'de> for AdamWStateItem<B, D, S>where
<AdaptiveMomentumWState<B, D> as Record>::Item<S>: Serialize + DeserializeOwned,
impl<'de, B: Backend, const D: usize, S: PrecisionSettings> Deserialize<'de> for AdamWStateItem<B, D, S>where <AdaptiveMomentumWState<B, D> as Record>::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 AdamWStateItem<B, D, S>where
<AdaptiveMomentumWState<B, D> as Record>::Item<S>: Serialize + DeserializeOwned,
impl<B: Backend, const D: usize, S: PrecisionSettings> Serialize for AdamWStateItem<B, D, S>where <AdaptiveMomentumWState<B, D> as Record>::Item<S>: Serialize + DeserializeOwned,
Auto Trait Implementations§
impl<B, const D: usize, S> RefUnwindSafe for AdamWStateItem<B, D, S>where <S as PrecisionSettings>::FloatElem: RefUnwindSafe,
impl<B, const D: usize, S> Send for AdamWStateItem<B, D, S>
impl<B, const D: usize, S> Sync for AdamWStateItem<B, D, S>
impl<B, const D: usize, S> Unpin for AdamWStateItem<B, D, S>where <S as PrecisionSettings>::FloatElem: Unpin,
impl<B, const D: usize, S> UnwindSafe for AdamWStateItem<B, D, S>where <S as PrecisionSettings>::FloatElem: 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