Struct burn_core::nn::LayerNormRecordItem
source · pub struct LayerNormRecordItem<B: Backend, S: PrecisionSettings> {
pub gamma: <<Param<Tensor<B, 1>> as Module<B>>::Record as Record>::Item<S>,
pub beta: <<Param<Tensor<B, 1>> as Module<B>>::Record as Record>::Item<S>,
pub epsilon: <<f64 as Module<B>>::Record as Record>::Item<S>,
}Expand description
The record item type for the module.
Fields§
§gamma: <<Param<Tensor<B, 1>> as Module<B>>::Record as Record>::Item<S>Field to be serialized.
beta: <<Param<Tensor<B, 1>> as Module<B>>::Record as Record>::Item<S>Field to be serialized.
epsilon: <<f64 as Module<B>>::Record as Record>::Item<S>Field to be serialized.
Trait Implementations§
source§impl<B: Clone + Backend, S: Clone + PrecisionSettings> Clone for LayerNormRecordItem<B, S>
impl<B: Clone + Backend, S: Clone + PrecisionSettings> Clone for LayerNormRecordItem<B, S>
source§fn clone(&self) -> LayerNormRecordItem<B, S>
fn clone(&self) -> LayerNormRecordItem<B, 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, S: Debug + PrecisionSettings> Debug for LayerNormRecordItem<B, S>
impl<B: Debug + Backend, S: Debug + PrecisionSettings> Debug for LayerNormRecordItem<B, S>
source§impl<'de, B: Backend, S: PrecisionSettings> Deserialize<'de> for LayerNormRecordItem<B, S>where
<<Param<Tensor<B, 1>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Param<Tensor<B, 1>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<f64 as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
impl<'de, B: Backend, S: PrecisionSettings> Deserialize<'de> for LayerNormRecordItem<B, S>where <<Param<Tensor<B, 1>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned, <<Param<Tensor<B, 1>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned, <<f64 as Module<B>>::Record 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, S: PrecisionSettings> Serialize for LayerNormRecordItem<B, S>where
<<Param<Tensor<B, 1>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Param<Tensor<B, 1>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<f64 as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
impl<B: Backend, S: PrecisionSettings> Serialize for LayerNormRecordItem<B, S>where <<Param<Tensor<B, 1>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned, <<Param<Tensor<B, 1>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned, <<f64 as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
Auto Trait Implementations§
impl<B, S> RefUnwindSafe for LayerNormRecordItem<B, S>where <S as PrecisionSettings>::FloatElem: RefUnwindSafe,
impl<B, S> Send for LayerNormRecordItem<B, S>
impl<B, S> Sync for LayerNormRecordItem<B, S>
impl<B, S> Unpin for LayerNormRecordItem<B, S>where <S as PrecisionSettings>::FloatElem: Unpin,
impl<B, S> UnwindSafe for LayerNormRecordItem<B, 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