Struct burn_core::nn::LayerNormRecord
source · pub struct LayerNormRecord<B: Backend> {
pub gamma: <Param<Tensor<B, 1>> as Module<B>>::Record,
pub beta: <Param<Tensor<B, 1>> as Module<B>>::Record,
pub epsilon: <f64 as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§gamma: <Param<Tensor<B, 1>> as Module<B>>::RecordThe module record associative type.
beta: <Param<Tensor<B, 1>> as Module<B>>::RecordThe module record associative type.
epsilon: <f64 as Module<B>>::RecordThe module record associative type.
Trait Implementations§
source§impl<B: Clone + Backend> Clone for LayerNormRecord<B>
impl<B: Clone + Backend> Clone for LayerNormRecord<B>
source§fn clone(&self) -> LayerNormRecord<B>
fn clone(&self) -> LayerNormRecord<B>
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: Backend> Record for LayerNormRecord<B>
impl<B: Backend> Record for LayerNormRecord<B>
§type Item<S: PrecisionSettings> = LayerNormRecordItem<B, S>
type Item<S: PrecisionSettings> = LayerNormRecordItem<B, S>
Type of the item that can be serialized and deserialized.
source§fn into_item<S: PrecisionSettings>(self) -> Self::Item<S>
fn into_item<S: PrecisionSettings>(self) -> Self::Item<S>
Convert the current record into the corresponding item that follows the given settings.
source§fn from_item<S: PrecisionSettings>(item: Self::Item<S>) -> Self
fn from_item<S: PrecisionSettings>(item: Self::Item<S>) -> Self
Convert the given item into a record.
Auto Trait Implementations§
impl<B> RefUnwindSafe for LayerNormRecord<B>where <B as Backend>::TensorPrimitive<1>: RefUnwindSafe,
impl<B> Send for LayerNormRecord<B>
impl<B> Sync for LayerNormRecord<B>
impl<B> Unpin for LayerNormRecord<B>where <B as Backend>::TensorPrimitive<1>: Unpin,
impl<B> UnwindSafe for LayerNormRecord<B>where <B as Backend>::TensorPrimitive<1>: 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