pub struct Mamba1LayerConfig {
pub mamba_block: Mamba1Config,
}Fields§
§mamba_block: Mamba1ConfigImplementations§
Source§impl Mamba1LayerConfig
impl Mamba1LayerConfig
Sourcepub fn init<B: Backend>(&self, device: &B::Device) -> Mamba1Layer<B>
pub fn init<B: Backend>(&self, device: &B::Device) -> Mamba1Layer<B>
Returns the initialized model.
Trait Implementations§
Source§impl Clone for Mamba1LayerConfig
impl Clone for Mamba1LayerConfig
Source§impl Config for Mamba1LayerConfig
impl Config for Mamba1LayerConfig
§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 Mamba1LayerConfig
impl Debug for Mamba1LayerConfig
Source§impl<'de> Deserialize<'de> for Mamba1LayerConfig
impl<'de> Deserialize<'de> for Mamba1LayerConfig
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 Mamba1LayerConfig
impl Display for Mamba1LayerConfig
Auto Trait Implementations§
impl Freeze for Mamba1LayerConfig
impl RefUnwindSafe for Mamba1LayerConfig
impl Send for Mamba1LayerConfig
impl Sync for Mamba1LayerConfig
impl Unpin for Mamba1LayerConfig
impl UnsafeUnpin for Mamba1LayerConfig
impl UnwindSafe for Mamba1LayerConfig
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