pub struct AttnWeights<'a> {
pub q_proj: QLinear<'a>,
pub k_proj: QLinear<'a>,
pub v_proj: QLinear<'a>,
pub o_proj: QLinear<'a>,
pub q_norm: &'a [bf16],
pub k_norm: &'a [bf16],
pub index_qk: QLinear<'a>,
pub index_q_norm: &'a [bf16],
pub index_k_norm: &'a [bf16],
}Fields§
§q_proj: QLinear<'a>§k_proj: QLinear<'a>§v_proj: QLinear<'a>§o_proj: QLinear<'a>§q_norm: &'a [bf16]§k_norm: &'a [bf16]§index_qk: QLinear<'a>§index_q_norm: &'a [bf16]§index_k_norm: &'a [bf16]Auto Trait Implementations§
impl<'a> Freeze for AttnWeights<'a>
impl<'a> RefUnwindSafe for AttnWeights<'a>
impl<'a> Send for AttnWeights<'a>
impl<'a> Sync for AttnWeights<'a>
impl<'a> Unpin for AttnWeights<'a>
impl<'a> UnsafeUnpin for AttnWeights<'a>
impl<'a> UnwindSafe for AttnWeights<'a>
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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