pub struct BatchNorm1d { /* private fields */ }Expand description
Batch Normalization for 1D inputs (Ioffe & Szegedy, 2015).
Normalizes across the batch dimension during training. Uses running statistics during evaluation.
Implementations§
Source§impl BatchNorm1d
impl BatchNorm1d
Trait Implementations§
Source§impl Debug for BatchNorm1d
impl Debug for BatchNorm1d
Source§impl Module for BatchNorm1d
impl Module for BatchNorm1d
Source§fn parameters_mut(&mut self) -> Vec<&mut Tensor>
fn parameters_mut(&mut self) -> Vec<&mut Tensor>
Get mutable references to all learnable parameters. Read more
Source§fn refresh_caches(&mut self)
fn refresh_caches(&mut self)
Refresh any cached computations after parameters have been modified. Read more
Source§fn num_parameters(&self) -> usize
fn num_parameters(&self) -> usize
Get the number of learnable parameters.
Auto Trait Implementations§
impl Freeze for BatchNorm1d
impl !RefUnwindSafe for BatchNorm1d
impl Send for BatchNorm1d
impl Sync for BatchNorm1d
impl Unpin for BatchNorm1d
impl UnsafeUnpin for BatchNorm1d
impl !UnwindSafe for BatchNorm1d
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more