pub struct QuantMatrix { /* private fields */ }Expand description
A GPU-resident weight stored in OA’s native Q4 or Q8 block encoding.
Constructed by quantize; the packed payload and scale planes are
private implementation detail and never exposed as public matrix values.
Implementations§
Source§impl QuantMatrix
impl QuantMatrix
Sourcepub fn num_elements(&self) -> usize
pub fn num_elements(&self) -> usize
Return the number of logical weight elements.
Sourcepub const fn quantization(&self) -> Quantization
pub const fn quantization(&self) -> Quantization
Return the block quantization format.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for QuantMatrix
impl !Send for QuantMatrix
impl !Sync for QuantMatrix
impl !UnwindSafe for QuantMatrix
impl Forget for QuantMatrix
impl Freeze for QuantMatrixwhere
*const RcInner<RefCell<RuntimeState>> is !null: Freeze,
PhantomData<RcInner<RefCell<RuntimeState>>>: Freeze,
*const RcInner<StorageInner> is !null: Freeze,
PhantomData<RcInner<StorageInner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
*const RcInner<MatrixSemantic> is !null: Freeze,
PhantomData<RcInner<MatrixSemantic>>: Freeze,
PhantomData<Rc<()>>: Freeze,
impl Move for QuantMatrix
impl Unpin for QuantMatrix
impl UnsafeUnpin for QuantMatrixwhere
*const RcInner<RefCell<RuntimeState>> is !null: UnsafeUnpin,
PhantomData<RcInner<RefCell<RuntimeState>>>: UnsafeUnpin,
*const RcInner<StorageInner> is !null: UnsafeUnpin,
PhantomData<RcInner<StorageInner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
*const RcInner<MatrixSemantic> is !null: UnsafeUnpin,
PhantomData<RcInner<MatrixSemantic>>: UnsafeUnpin,
PhantomData<Rc<()>>: UnsafeUnpin,
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