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