pub struct LstmConfig {
pub input_size: usize,
pub hidden_size: usize,
pub num_layers: usize,
}Expand description
LSTM configuration (NAM _export_config).
Fields§
§input_size: usizeInput width (1 for mono amp models).
Hidden state dimension H.
num_layers: usizeNumber of stacked LSTM layers L.
Trait Implementations§
Source§impl Clone for LstmConfig
impl Clone for LstmConfig
Source§fn clone(&self) -> LstmConfig
fn clone(&self) -> LstmConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LstmConfig
impl Debug for LstmConfig
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
Auto Trait Implementations§
impl Freeze for LstmConfig
impl RefUnwindSafe for LstmConfig
impl Send for LstmConfig
impl Sync for LstmConfig
impl Unpin for LstmConfig
impl UnsafeUnpin 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