pub struct FlashAttentionGrads {
pub grad_q: UnifiedTensor,
pub grad_k: UnifiedTensor,
pub grad_v: UnifiedTensor,
}Expand description
Gradients from Flash Attention backward pass.
Fields§
§grad_q: UnifiedTensorGradient with respect to queries
grad_k: UnifiedTensorGradient with respect to keys
grad_v: UnifiedTensorGradient with respect to values
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FlashAttentionGrads
impl !UnwindSafe for FlashAttentionGrads
impl Freeze for FlashAttentionGrads
impl Send for FlashAttentionGrads
impl Sync for FlashAttentionGrads
impl Unpin for FlashAttentionGrads
impl UnsafeUnpin for FlashAttentionGrads
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> 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