pub struct EluConfig {
pub alpha: f64,
}Expand description
Configuration to create an Elu layer using the init function.
Fields§
§alpha: f64The alpha value. Default is 1.0
Implementations§
Trait Implementations§
Source§impl Config for EluConfig
impl Config for EluConfig
Source§fn save<P>(&self, file: P) -> Result<(), Error>
fn save<P>(&self, file: P) -> Result<(), Error>
Available on crate feature
std only.Saves the configuration to a file. Read more
Source§fn load<P>(file: P) -> Result<Self, ConfigError>
fn load<P>(file: P) -> Result<Self, ConfigError>
Available on crate feature
std only.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 EluConfig
impl<'de> Deserialize<'de> for EluConfig
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 From<EluConfig> for ActivationConfig
impl From<EluConfig> for ActivationConfig
Auto Trait Implementations§
impl Freeze for EluConfig
impl RefUnwindSafe for EluConfig
impl Send for EluConfig
impl Sync for EluConfig
impl Unpin for EluConfig
impl UnsafeUnpin for EluConfig
impl UnwindSafe for EluConfig
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