pub struct RmsNorm { /* private fields */ }Expand description
RMS normalization over the last dimension.
Like LayerNorm but skips the mean-centering step, normalizing only by
the root-mean-square. 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 RmsNorm
impl RefUnwindSafe for RmsNorm
impl Send for RmsNorm
impl Sync for RmsNorm
impl Unpin for RmsNorm
impl UnsafeUnpin for RmsNorm
impl UnwindSafe for RmsNorm
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