Struct burn_core::nn::GroupNormConfig
source · pub struct GroupNormConfig { /* private fields */ }Expand description
Configuration to create a GroupNorm layer.
Implementations§
source§impl GroupNormConfig
impl GroupNormConfig
sourcepub fn with_epsilon(self, epsilon: f64) -> Self
pub fn with_epsilon(self, epsilon: f64) -> Self
A value required for numerical stability. Default: 1e-5
sourcepub fn with_affine(self, affine: bool) -> Self
pub fn with_affine(self, affine: bool) -> Self
A boolean value that when set to true, this module has learnable
source§impl GroupNormConfig
impl GroupNormConfig
sourcepub fn init<B: Backend>(&self) -> GroupNorm<B>
pub fn init<B: Backend>(&self) -> GroupNorm<B>
Initialize a new group norm module.
sourcepub fn init_with<B: Backend>(&self, record: GroupNormRecord<B>) -> GroupNorm<B>
pub fn init_with<B: Backend>(&self, record: GroupNormRecord<B>) -> GroupNorm<B>
Initialize a new group norm module with a record.
Trait Implementations§
source§impl Clone for GroupNormConfig
impl Clone for GroupNormConfig
source§impl Config for GroupNormConfig
impl Config for GroupNormConfig
source§fn save<P: AsRef<Path>>(&self, file: P) -> Result<()>
fn save<P: AsRef<Path>>(&self, file: P) -> Result<()>
Saves the configuration to a file. Read more
source§fn load<P: AsRef<Path>>(file: P) -> Result<Self, ConfigError>
fn load<P: AsRef<Path>>(file: P) -> Result<Self, ConfigError>
Loads the configuration from a file. Read more
source§fn load_binary(data: &[u8]) -> Result<Self, ConfigError>
fn load_binary(data: &[u8]) -> Result<Self, ConfigError>
Loads the configuration from a binary buffer. Read more
source§impl<'de> Deserialize<'de> for GroupNormConfig
impl<'de> Deserialize<'de> for GroupNormConfig
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for GroupNormConfig
impl Display for GroupNormConfig
Auto Trait Implementations§
impl RefUnwindSafe for GroupNormConfig
impl Send for GroupNormConfig
impl Sync for GroupNormConfig
impl Unpin for GroupNormConfig
impl UnwindSafe for GroupNormConfig
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