Struct burn::nn::LayerNormConfig
source · [−]Expand description
Configuration to create a LayerNorm layer.
Fields
d_model: usize
The size of the input features.
epsilon: f64
A value required for numerical stability. Default: 1e-5
Implementations
sourceimpl LayerNormConfig
impl LayerNormConfig
pub fn with_epsilon(self, epsilon: f64) -> Self
Trait Implementations
sourceimpl Clone for LayerNormConfig
impl Clone for LayerNormConfig
sourceimpl Config for LayerNormConfig
impl Config for LayerNormConfig
sourceimpl<'de> Deserialize<'de> for LayerNormConfig
impl<'de> Deserialize<'de> for LayerNormConfig
sourcefn 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
sourceimpl Display for LayerNormConfig
impl Display for LayerNormConfig
sourceimpl Serialize for LayerNormConfig
impl Serialize for LayerNormConfig
Auto Trait Implementations
impl RefUnwindSafe for LayerNormConfig
impl Send for LayerNormConfig
impl Sync for LayerNormConfig
impl Unpin for LayerNormConfig
impl UnwindSafe for LayerNormConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more