[][src]Struct neuro::layers::BatchNorm

pub struct BatchNorm { /* fields omitted */ }

Defines a batch normalization layer.

Methods

impl BatchNorm[src]

pub fn new() -> Box<BatchNorm>[src]

Creates a batch normalization layer.

By default, the momentum used by the running averages is set to 0.99 and the epsilon value used for numerical stability to 1e-5.

pub fn with_param(momentum: PrimitiveType, eps: PrimitiveType) -> Box<BatchNorm>[src]

Creates a batch normalization layers with the given momentum.

Arguments

  • momentum - The momentum used by the running averages to compute the mean and standard deviation of the data set.
  • eps - A small constant used for numerical stability.

pub fn mean(&self) -> Tensor[src]

Returns the current estimate of the dataset mean.

pub fn variance(&self) -> Tensor[src]

Returns the current estimate of the dataset variance.

Trait Implementations

impl Display for BatchNorm[src]

impl Layer for BatchNorm[src]

Auto Trait Implementations

impl RefUnwindSafe for BatchNorm

impl Send for BatchNorm

impl Sync for BatchNorm

impl Unpin for BatchNorm

impl UnwindSafe for BatchNorm

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,