pub struct MambaDecoder { /* private fields */ }Expand description
Mamba decoder for syndrome-to-correction mapping
Implementations§
Source§impl MambaDecoder
impl MambaDecoder
Sourcepub fn new(config: MambaConfig) -> Self
pub fn new(config: MambaConfig) -> Self
Create a new Mamba decoder
Sourcepub fn decode(&mut self, embeddings: &Array2<f32>) -> Result<Array1<f32>>
pub fn decode(&mut self, embeddings: &Array2<f32>) -> Result<Array1<f32>>
Decode node embeddings to correction probabilities
Sourcepub fn decode_step(&mut self, embedding: &[f32]) -> Result<Vec<f32>>
pub fn decode_step(&mut self, embedding: &[f32]) -> Result<Vec<f32>>
Decode with explicit state management
Sourcepub fn state(&self) -> &MambaState
pub fn state(&self) -> &MambaState
Get the current state
Sourcepub fn config(&self) -> &MambaConfig
pub fn config(&self) -> &MambaConfig
Get the configuration
Trait Implementations§
Source§impl Clone for MambaDecoder
impl Clone for MambaDecoder
Source§fn clone(&self) -> MambaDecoder
fn clone(&self) -> MambaDecoder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MambaDecoder
impl RefUnwindSafe for MambaDecoder
impl Send for MambaDecoder
impl Sync for MambaDecoder
impl Unpin for MambaDecoder
impl UnwindSafe for MambaDecoder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more