pub struct FlashAttention2Op<'a, D: Float + Send + Sync + 'static> {
pub forward: FlashAttention2Forward<D>,
pub backward_dq: FlashAttention2BackwardDq<D>,
pub backward_dkv: FlashAttention2BackwardDkv<D>,
/* private fields */
}Expand description
Bundles the forward and backward Flash Attention 2 kernels for a given head dimension.
Fields§
§forward: FlashAttention2Forward<D>The forward-pass kernel.
backward_dq: FlashAttention2BackwardDq<D>The backward-pass kernel computing dQ.
backward_dkv: FlashAttention2BackwardDkv<D>The backward-pass kernel computing dK and dV.
Implementations§
Auto Trait Implementations§
impl<'a, D> Freeze for FlashAttention2Op<'a, D>
impl<'a, D> RefUnwindSafe for FlashAttention2Op<'a, D>where
D: RefUnwindSafe,
impl<'a, D> Send for FlashAttention2Op<'a, D>
impl<'a, D> Sync for FlashAttention2Op<'a, D>
impl<'a, D> Unpin for FlashAttention2Op<'a, D>where
D: Unpin,
impl<'a, D> UnsafeUnpin for FlashAttention2Op<'a, D>
impl<'a, D> UnwindSafe for FlashAttention2Op<'a, D>where
D: UnwindSafe,
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