pub struct LayerNorm {
pub weight: FloatTensor,
pub bias: Option<FloatTensor>,
pub remove_mean: bool,
pub eps: f64,
}Fields§
§weight: FloatTensor§bias: Option<FloatTensor>§remove_mean: bool§eps: f64Implementations§
Source§impl LayerNorm
impl LayerNorm
pub fn forward(&self, x: &FloatTensor) -> Result<FloatTensor>
Auto Trait Implementations§
impl Freeze for LayerNorm
impl RefUnwindSafe for LayerNorm
impl Send for LayerNorm
impl Sync for LayerNorm
impl Unpin 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