Struct caffe2_nomnigraph::BatchNormalization
source · pub struct BatchNormalization { /* private fields */ }
Implementations§
source§impl BatchNormalization
impl BatchNormalization
pub fn new( epsilon: Option<f32>, momentum: Option<f32>, spatial: Option<bool>, is_test: Option<bool> ) -> Self
pub fn get_epsilon(&self) -> f32
pub fn get_momentum(&self) -> f32
pub fn get_spatial(&self) -> bool
pub fn get_is_test(&self) -> bool
pub fn set_epsilon(&mut self, epsilon: f32)
pub fn set_momentum(&mut self, momentum: f32)
pub fn set_spatial(&mut self, spatial: bool)
pub fn set_is_test(&mut self, is_test: bool)
Auto Trait Implementations§
impl RefUnwindSafe for BatchNormalization
impl Send for BatchNormalization
impl Sync for BatchNormalization
impl Unpin for BatchNormalization
impl UnwindSafe for BatchNormalization
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.