pub struct W8a8Scratch {
pub q: DevicePtr,
pub q_bytes: usize,
pub scale: DevicePtr,
pub scale_bytes: usize,
}Expand description
2026-09-28: Device scratch for one quantized activation: [rows, k] E4M3
and its FP32 scales. One per model; every W8A8 projection on the stream
quantizes into it immediately before its GEMV.
Fields§
§q: DevicePtr§q_bytes: usize§scale: DevicePtr§scale_bytes: usizeImplementations§
Source§impl W8a8Scratch
impl W8a8Scratch
Source§impl W8a8Scratch
impl W8a8Scratch
Sourcepub fn alloc(gpu: &dyn GpuBackend, max_k: u32) -> Result<Self>
pub fn alloc(gpu: &dyn GpuBackend, max_k: u32) -> Result<Self>
2026-09-28: Room for W8A8_MAX_ROWS rows of a max_k-wide
activation in either scale layout.
Trait Implementations§
Source§impl Clone for W8a8Scratch
impl Clone for W8a8Scratch
Source§fn clone(&self) -> W8a8Scratch
fn clone(&self) -> W8a8Scratch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for W8a8Scratch
impl Debug for W8a8Scratch
impl Copy for W8a8Scratch
Auto Trait Implementations§
impl Freeze for W8a8Scratch
impl RefUnwindSafe for W8a8Scratch
impl Send for W8a8Scratch
impl Sync for W8a8Scratch
impl Unpin for W8a8Scratch
impl UnwindSafe for W8a8Scratch
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