pub struct BatchNormWithGlobalNormalization { /* private fields */ }
Expand description
Builder for the BatchNormWithGlobalNormalization
operation.
Implementations§
Source§impl BatchNormWithGlobalNormalization
impl BatchNormWithGlobalNormalization
Sourcepub fn variance_epsilon<ArgType: Into<f32>>(self, value: ArgType) -> Self
pub fn variance_epsilon<ArgType: Into<f32>>(self, value: ArgType) -> Self
Sets the variance_epsilon
attribute.
Sourcepub fn scale_after_normalization<ArgType: Into<bool>>(
self,
value: ArgType,
) -> Self
pub fn scale_after_normalization<ArgType: Into<bool>>( self, value: ArgType, ) -> Self
Sets the scale_after_normalization
attribute.
Sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
Sourcepub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>>(
&self,
t: O0,
m: O1,
v: O2,
beta: O3,
gamma: O4,
scope: &mut Scope,
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>>( &self, t: O0, m: O1, v: O2, beta: O3, gamma: O4, scope: &mut Scope, ) -> Result<Operation>
Builds the BatchNormWithGlobalNormalization
operation.
Sourcepub fn build_instance(
&self,
t: Output,
m: Output,
v: Output,
beta: Output,
gamma: Output,
scope: &mut Scope,
) -> Result<BatchNormWithGlobalNormalizationInst>
pub fn build_instance( &self, t: Output, m: Output, v: Output, beta: Output, gamma: Output, scope: &mut Scope, ) -> Result<BatchNormWithGlobalNormalizationInst>
Builds a new instance of ‘BatchNormWithGlobalNormalization’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
Source§impl Default for BatchNormWithGlobalNormalization
impl Default for BatchNormWithGlobalNormalization
Source§fn default() -> BatchNormWithGlobalNormalization
fn default() -> BatchNormWithGlobalNormalization
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BatchNormWithGlobalNormalization
impl RefUnwindSafe for BatchNormWithGlobalNormalization
impl Send for BatchNormWithGlobalNormalization
impl Sync for BatchNormWithGlobalNormalization
impl Unpin for BatchNormWithGlobalNormalization
impl UnwindSafe for BatchNormWithGlobalNormalization
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