pub struct LayerNorm { /* private fields */ }Expand description
Layer normalization over the last dimension.
Normalizes to zero mean and unit variance, controlled by eps for
numerical stability. The dim parameter specifies the expected size
of the last dimension and is validated during forward().
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayerNorm
impl RefUnwindSafe for LayerNorm
impl Send for LayerNorm
impl Sync for LayerNorm
impl Unpin for LayerNorm
impl UnsafeUnpin for LayerNorm
impl UnwindSafe for LayerNorm
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