pub struct GraphDash<'a> {Show 14 fields
pub qk_proj: &'a [f32],
pub q_norm: &'a [f32],
pub k_norm: &'a [f32],
pub head_cls: &'a [f32],
pub idx_scale: f32,
pub floor: f32,
pub sigma: f32,
pub k: usize,
pub block: usize,
pub local_blocks: usize,
pub nblk: usize,
pub cands: &'a [u32],
pub coff: &'a [u32],
pub angles: &'a [f32],
}Expand description
One layer’s DASH router for the token graph (gpu_wgpu::uocr).
Fields§
§qk_proj: &'a [f32][2·index_dim, hidden], the q rows then the k rows.
q_norm: &'a [f32]§k_norm: &'a [f32]§head_cls: &'a [f32]§idx_scale: f32§floor: f32§sigma: f32§k: usize§block: usize§local_blocks: usize§nblk: usize§cands: &'a [u32]Candidate blocks of the rows, coff[row]..coff[row + 1] per row.
coff: &'a [u32]§angles: &'a [f32]The rows’ rotation angles, [rows][head_dim / 2].
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for GraphDash<'a>
impl<'a> Freeze for GraphDash<'a>
impl<'a> Move for GraphDash<'a>
impl<'a> RefUnwindSafe for GraphDash<'a>
impl<'a> Send for GraphDash<'a>
impl<'a> Sync for GraphDash<'a>
impl<'a> Unpin for GraphDash<'a>
impl<'a> UnsafeUnpin for GraphDash<'a>
impl<'a> UnwindSafe for GraphDash<'a>
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