pub struct Mamba2LayerConfig {
pub mamba_block: Mamba2Config,
}Expand description
Configuration / factory for Mamba2Layer.
Fields§
§mamba_block: Mamba2ConfigConfiguration for the inner Mamba-2 block.
Implementations§
Source§impl Mamba2LayerConfig
impl Mamba2LayerConfig
Sourcepub fn init<B: Backend>(&self, device: &B::Device) -> Mamba2Layer<B>
pub fn init<B: Backend>(&self, device: &B::Device) -> Mamba2Layer<B>
Allocate and initialise the layer on device.
Trait Implementations§
Source§impl Clone for Mamba2LayerConfig
impl Clone for Mamba2LayerConfig
Source§impl Config for Mamba2LayerConfig
impl Config for Mamba2LayerConfig
§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 Mamba2LayerConfig
impl Debug for Mamba2LayerConfig
Source§impl<'de> Deserialize<'de> for Mamba2LayerConfig
impl<'de> Deserialize<'de> for Mamba2LayerConfig
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 Mamba2LayerConfig
impl Display for Mamba2LayerConfig
Auto Trait Implementations§
impl Freeze for Mamba2LayerConfig
impl RefUnwindSafe for Mamba2LayerConfig
impl Send for Mamba2LayerConfig
impl Sync for Mamba2LayerConfig
impl Unpin for Mamba2LayerConfig
impl UnsafeUnpin for Mamba2LayerConfig
impl UnwindSafe for Mamba2LayerConfig
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