Struct burn_core::nn::lstm::LstmConfig
source · pub struct LstmConfig {
pub d_input: usize,
pub d_hidden: usize,
pub bias: bool,
pub initializer: Initializer,
}Expand description
The configuration for a lstm module.
Fields§
§d_input: usizeThe size of the input features.
The size of the hidden state.
bias: boolIf a bias should be applied during the Lstm transformation.
initializer: InitializerLstm initializer
Implementations§
source§impl LstmConfig
impl LstmConfig
source§impl LstmConfig
impl LstmConfig
sourcepub fn with_initializer(self, initializer: Initializer) -> Self
pub fn with_initializer(self, initializer: Initializer) -> Self
Lstm initializer
Trait Implementations§
source§impl Clone for LstmConfig
impl Clone for LstmConfig
source§impl Config for LstmConfig
impl Config for LstmConfig
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 LstmConfig
impl<'de> Deserialize<'de> for LstmConfig
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 LstmConfig
impl Display for LstmConfig
Auto Trait Implementations§
impl RefUnwindSafe for LstmConfig
impl Send for LstmConfig
impl Sync for LstmConfig
impl Unpin for LstmConfig
impl UnwindSafe for LstmConfig
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