pub enum Decay<'a> {
PerHead(&'a [f32]),
PerState(&'a [f32]),
}Expand description
The stored A, in the two shapes the kernel takes.
Variants§
PerHead(&'a [f32])
Mamba-2: [n_head], {1, n_head} in ggml; dA is one scalar
per head.
PerState(&'a [f32])
Mamba-1: [n_head][d_state], {d_state, n_head} in ggml; dA
is one scalar per state element.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Decay<'a>
impl<'a> RefUnwindSafe for Decay<'a>
impl<'a> Send for Decay<'a>
impl<'a> Sync for Decay<'a>
impl<'a> Unpin for Decay<'a>
impl<'a> UnsafeUnpin for Decay<'a>
impl<'a> UnwindSafe for Decay<'a>
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