Struct tch::nn::BatchNormConfig
source · pub struct BatchNormConfig {
pub cudnn_enabled: bool,
pub eps: f64,
pub momentum: f64,
pub affine: bool,
pub ws_init: Init,
pub bs_init: Init,
}
Expand description
Batch-normalization config.
Fields§
§cudnn_enabled: bool
§eps: f64
§momentum: f64
§affine: bool
§ws_init: Init
§bs_init: Init
Trait Implementations§
source§impl Clone for BatchNormConfig
impl Clone for BatchNormConfig
source§fn clone(&self) -> BatchNormConfig
fn clone(&self) -> BatchNormConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BatchNormConfig
impl Debug for BatchNormConfig
source§impl Default for BatchNormConfig
impl Default for BatchNormConfig
impl Copy for BatchNormConfig
Auto Trait Implementations§
impl RefUnwindSafe for BatchNormConfig
impl Send for BatchNormConfig
impl Sync for BatchNormConfig
impl Unpin for BatchNormConfig
impl UnwindSafe for BatchNormConfig
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