pub struct Mamba3BidiLayerPairConfig {
pub straight_block: Mamba3Config,
pub reverse_block: Mamba3Config,
pub residual_scale: f32,
pub output_merge: OutputMergeConfig,
}Fields§
§straight_block: Mamba3Config§reverse_block: Mamba3Config§residual_scale: f32§output_merge: OutputMergeConfigImplementations§
Source§impl Mamba3BidiLayerPairConfig
impl Mamba3BidiLayerPairConfig
Sourcepub fn new(
straight_block: Mamba3Config,
reverse_block: Mamba3Config,
output_merge: OutputMergeConfig,
) -> Self
pub fn new( straight_block: Mamba3Config, reverse_block: Mamba3Config, output_merge: OutputMergeConfig, ) -> Self
Source§impl Mamba3BidiLayerPairConfig
impl Mamba3BidiLayerPairConfig
Sourcepub fn with_residual_scale(self, residual_scale: f32) -> Self
pub fn with_residual_scale(self, residual_scale: f32) -> Self
Sets the value for the field residual_scale.
- Defaults to
1.0
Source§impl Mamba3BidiLayerPairConfig
impl Mamba3BidiLayerPairConfig
Sourcepub fn init<B: Backend>(&self, device: &B::Device) -> Mamba3BidiLayerPair<B>
pub fn init<B: Backend>(&self, device: &B::Device) -> Mamba3BidiLayerPair<B>
Returns the initialized model.
Trait Implementations§
Source§impl Clone for Mamba3BidiLayerPairConfig
impl Clone for Mamba3BidiLayerPairConfig
Source§impl Config for Mamba3BidiLayerPairConfig
impl Config for Mamba3BidiLayerPairConfig
§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 Mamba3BidiLayerPairConfig
impl Debug for Mamba3BidiLayerPairConfig
Source§impl<'de> Deserialize<'de> for Mamba3BidiLayerPairConfig
impl<'de> Deserialize<'de> for Mamba3BidiLayerPairConfig
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 Mamba3BidiLayerPairConfig
impl Display for Mamba3BidiLayerPairConfig
Auto Trait Implementations§
impl Freeze for Mamba3BidiLayerPairConfig
impl RefUnwindSafe for Mamba3BidiLayerPairConfig
impl Send for Mamba3BidiLayerPairConfig
impl Sync for Mamba3BidiLayerPairConfig
impl Unpin for Mamba3BidiLayerPairConfig
impl UnsafeUnpin for Mamba3BidiLayerPairConfig
impl UnwindSafe for Mamba3BidiLayerPairConfig
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