Struct burn_core::optim::decay::WeightDecayConfig
source · pub struct WeightDecayConfig {
pub penalty: f64,
}Expand description
Configuration to create weight decay.
Fields§
§penalty: f64L2 penalty.
Implementations§
Trait Implementations§
source§impl Clone for WeightDecayConfig
impl Clone for WeightDecayConfig
source§impl Config for WeightDecayConfig
impl Config for WeightDecayConfig
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 WeightDecayConfig
impl<'de> Deserialize<'de> for WeightDecayConfig
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 WeightDecayConfig
impl Display for WeightDecayConfig
Auto Trait Implementations§
impl RefUnwindSafe for WeightDecayConfig
impl Send for WeightDecayConfig
impl Sync for WeightDecayConfig
impl Unpin for WeightDecayConfig
impl UnwindSafe for WeightDecayConfig
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