pub struct SoftplusConfig {
pub beta: f64,
}Expand description
Configuration to create a Softplus layer using the init function.
Fields§
§beta: f64The beta value. Default is 1.0
Implementations§
Trait Implementations§
Source§impl Clone for SoftplusConfig
impl Clone for SoftplusConfig
Source§impl Config for SoftplusConfig
impl Config for SoftplusConfig
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 Debug for SoftplusConfig
impl Debug for SoftplusConfig
Source§impl<'de> Deserialize<'de> for SoftplusConfig
impl<'de> Deserialize<'de> for SoftplusConfig
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 SoftplusConfig
impl Display for SoftplusConfig
Source§impl From<SoftplusConfig> for ActivationConfig
impl From<SoftplusConfig> for ActivationConfig
Source§fn from(config: SoftplusConfig) -> Self
fn from(config: SoftplusConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SoftplusConfig
impl RefUnwindSafe for SoftplusConfig
impl Send for SoftplusConfig
impl Sync for SoftplusConfig
impl Unpin for SoftplusConfig
impl UnwindSafe for SoftplusConfig
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