pub struct BatchNormTrainOutput<const D: usize> {
pub output: Tensor<D>,
pub mean: Tensor<1>,
pub variance: Tensor<1>,
}Expand description
Output and batch statistics from batch_norm_train.
Fields§
§output: Tensor<D>The normalized input, with the same shape as the input.
mean: Tensor<1>The batch mean with shape [channels], detached on autodiff devices.
variance: Tensor<1>The biased (population) batch variance with shape [channels], excluding
epsilon and detached on autodiff devices.
Auto Trait Implementations§
impl<const D: usize> Freeze for BatchNormTrainOutput<D>
impl<const D: usize> RefUnwindSafe for BatchNormTrainOutput<D>where
Tensor<D>: RefUnwindSafe,
impl<const D: usize> Send for BatchNormTrainOutput<D>
impl<const D: usize> Sync for BatchNormTrainOutput<D>
impl<const D: usize> Unpin for BatchNormTrainOutput<D>
impl<const D: usize> UnsafeUnpin for BatchNormTrainOutput<D>where
Tensor<D>: UnsafeUnpin,
impl<const D: usize> UnwindSafe for BatchNormTrainOutput<D>where
Tensor<D>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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