pub struct LayerNorm<B: Backend> {
pub weight: Option<Tensor<B>>,
pub bias: Option<Tensor<B>>,
pub eps: f32,
/* private fields */
}
Expand description
Lyaer norm layer
Fields§
§weight: Option<Tensor<B>>
weight
bias: Option<Tensor<B>>
bias
eps: f32
a value added to the denominator for numerical stability
Implementations§
Trait Implementations§
Source§impl<'a, B: Backend> IntoIterator for &'a LayerNorm<B>
impl<'a, B: Backend> IntoIterator for &'a LayerNorm<B>
Source§impl<'a, B: Backend> IntoIterator for &'a mut LayerNorm<B>
impl<'a, B: Backend> IntoIterator for &'a mut LayerNorm<B>
Auto Trait Implementations§
impl<B> Freeze for LayerNorm<B>where
B: Freeze,
impl<B> RefUnwindSafe for LayerNorm<B>where
B: RefUnwindSafe,
impl<B> Send for LayerNorm<B>where
B: Send,
impl<B> Sync for LayerNorm<B>where
B: Sync,
impl<B> Unpin for LayerNorm<B>where
B: Unpin,
impl<B> UnwindSafe for LayerNorm<B>where
B: 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