Struct burn_core::optim::AdamStateItem
source · pub struct AdamStateItem<B: Backend, const D: usize, S: PrecisionSettings> {
pub weight_decay: <Option<WeightDecayState<B, D>> as Record>::Item<S>,
pub momentum: <AdaptiveMomentumState<B, D> as Record>::Item<S>,
}Fields§
§weight_decay: <Option<WeightDecayState<B, D>> as Record>::Item<S>§momentum: <AdaptiveMomentumState<B, D> as Record>::Item<S>Trait Implementations§
source§impl<B: Clone + Backend, const D: usize, S: Clone + PrecisionSettings> Clone for AdamStateItem<B, D, S>
impl<B: Clone + Backend, const D: usize, S: Clone + PrecisionSettings> Clone for AdamStateItem<B, D, S>
source§fn clone(&self) -> AdamStateItem<B, D, S>
fn clone(&self) -> AdamStateItem<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 AdamStateItem<B, D, S>
impl<B: Debug + Backend, const D: usize, S: Debug + PrecisionSettings> Debug for AdamStateItem<B, D, S>
source§impl<'de, B: Backend, const D: usize, S: PrecisionSettings> Deserialize<'de> for AdamStateItem<B, D, S>where
<Option<WeightDecayState<B, D>> as Record>::Item<S>: Serialize + DeserializeOwned,
<AdaptiveMomentumState<B, D> as Record>::Item<S>: Serialize + DeserializeOwned,
impl<'de, B: Backend, const D: usize, S: PrecisionSettings> Deserialize<'de> for AdamStateItem<B, D, S>where <Option<WeightDecayState<B, D>> as Record>::Item<S>: Serialize + DeserializeOwned, <AdaptiveMomentumState<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 AdamStateItem<B, D, S>where
<Option<WeightDecayState<B, D>> as Record>::Item<S>: Serialize + DeserializeOwned,
<AdaptiveMomentumState<B, D> as Record>::Item<S>: Serialize + DeserializeOwned,
impl<B: Backend, const D: usize, S: PrecisionSettings> Serialize for AdamStateItem<B, D, S>where <Option<WeightDecayState<B, D>> as Record>::Item<S>: Serialize + DeserializeOwned, <AdaptiveMomentumState<B, D> as Record>::Item<S>: Serialize + DeserializeOwned,
Auto Trait Implementations§
impl<B, const D: usize, S> RefUnwindSafe for AdamStateItem<B, D, S>where S: RefUnwindSafe, <B as Backend>::TensorPrimitive<D>: RefUnwindSafe,
impl<B, const D: usize, S> Send for AdamStateItem<B, D, S>
impl<B, const D: usize, S> Sync for AdamStateItem<B, D, S>
impl<B, const D: usize, S> Unpin for AdamStateItem<B, D, S>where S: Unpin, <B as Backend>::TensorPrimitive<D>: Unpin,
impl<B, const D: usize, S> UnwindSafe for AdamStateItem<B, D, S>where S: UnwindSafe, <B as Backend>::TensorPrimitive<D>: 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