pub struct DeltaDims {
pub n_k_heads: usize,
pub n_v_heads: usize,
pub head_dim: usize,
pub map: HeadMap,
}Expand description
The geometry one step needs. head_dim is both the key and the
value width: the autoregressive graph asserts S_k == S_v (:307).
Fields§
§n_k_heads: usize§n_v_heads: usize§head_dim: usize§map: HeadMapImplementations§
Trait Implementations§
impl Copy for DeltaDims
impl Eq for DeltaDims
impl StructuralPartialEq for DeltaDims
Auto Trait Implementations§
impl Freeze for DeltaDims
impl RefUnwindSafe for DeltaDims
impl Send for DeltaDims
impl Sync for DeltaDims
impl Unpin for DeltaDims
impl UnsafeUnpin for DeltaDims
impl UnwindSafe for DeltaDims
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