pub struct Att {Show 25 fields
pub x_r: TensorGpu<f16, ReadWrite>,
pub x_w: TensorGpu<f16, ReadWrite>,
pub x_k: TensorGpu<f16, ReadWrite>,
pub x_v: TensorGpu<f16, ReadWrite>,
pub x_a: TensorGpu<f16, ReadWrite>,
pub x_g: TensorGpu<f16, ReadWrite>,
pub w0: TensorGpu<f16, ReadWrite>,
pub a0: TensorGpu<f16, ReadWrite>,
pub v0: TensorGpu<f16, ReadWrite>,
pub w1: Matrix,
pub w2: Matrix,
pub a1: Matrix,
pub a2: Matrix,
pub g1: Matrix,
pub g2: Matrix,
pub v1: Matrix,
pub v2: Matrix,
pub r_k: TensorGpu<f16, ReadWrite>,
pub k_k: TensorGpu<f16, ReadWrite>,
pub k_a: TensorGpu<f16, ReadWrite>,
pub w_k: Matrix,
pub w_v: Matrix,
pub w_r: Matrix,
pub w_o: Matrix,
pub gn: LayerNorm,
}Fields§
§x_r: TensorGpu<f16, ReadWrite>§x_w: TensorGpu<f16, ReadWrite>§x_k: TensorGpu<f16, ReadWrite>§x_v: TensorGpu<f16, ReadWrite>§x_a: TensorGpu<f16, ReadWrite>§x_g: TensorGpu<f16, ReadWrite>§w0: TensorGpu<f16, ReadWrite>§a0: TensorGpu<f16, ReadWrite>§v0: TensorGpu<f16, ReadWrite>§w1: Matrix§w2: Matrix§a1: Matrix§a2: Matrix§g1: Matrix§g2: Matrix§v1: Matrix§v2: Matrix§r_k: TensorGpu<f16, ReadWrite>§k_k: TensorGpu<f16, ReadWrite>§k_a: TensorGpu<f16, ReadWrite>§w_k: Matrix§w_v: Matrix§w_r: Matrix§w_o: Matrix§gn: LayerNormTrait Implementations§
Auto Trait Implementations§
impl Freeze for Att
impl !RefUnwindSafe for Att
impl Send for Att
impl Sync for Att
impl Unpin for Att
impl !UnwindSafe for Att
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 moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.