pub struct FlashOutput {
pub output: Vec<Vec<f32>>,
pub lse: Vec<f32>,
pub stats: IOStats,
}Expand description
Output of a flash attention forward pass.
Fields§
§output: Vec<Vec<f32>>The attention output matrix, shape [num_queries, dim].
lse: Vec<f32>Log-sum-exp per query row (m_i + ln(l_i)), used for backward pass.
stats: IOStatsIO statistics for this computation.
Trait Implementations§
Source§impl Clone for FlashOutput
impl Clone for FlashOutput
Source§fn clone(&self) -> FlashOutput
fn clone(&self) -> FlashOutput
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 FlashOutput
impl RefUnwindSafe for FlashOutput
impl Send for FlashOutput
impl Sync for FlashOutput
impl Unpin for FlashOutput
impl UnsafeUnpin for FlashOutput
impl UnwindSafe for FlashOutput
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