pub struct SSMConfig {
pub d_model: usize,
pub d_state: usize,
pub d_conv: usize,
pub expand_factor: usize,
pub dt_rank: usize,
}Expand description
Configuration for a Selective State Space Model layer.
Fields§
§d_model: usizeModel dimension (input/output width).
d_state: usizeState dimension (N). Controls the capacity of the recurrent state.
d_conv: usize1D convolution kernel size. Provides local context before the SSM.
expand_factor: usizeInner dimension expansion factor. The SSM operates at d_model * expand.
dt_rank: usizeRank of the Delta projection (dt_rank). Lower rank saves parameters.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SSMConfig
impl RefUnwindSafe for SSMConfig
impl Send for SSMConfig
impl Sync for SSMConfig
impl Unpin for SSMConfig
impl UnsafeUnpin for SSMConfig
impl UnwindSafe for SSMConfig
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