pub enum SQNBitComputeType {
Fp32,
Int8,
}Expand description
Blocked n-bit quantized GEMM compute type, mirroring MLAS’s
MLAS_QNBIT_GEMM_COMPUTE_TYPE. Only the two x86 float-input variants used
by the CPU MatMulNBits decode path are exposed.
Variants§
Fp32
fp32 activation, fp32 accumulate (SQNBIT_CompFp32).
Int8
int8 activation, int32 accumulate (SQNBIT_CompInt8); ONNX
accuracy_level=4.
Trait Implementations§
Source§impl Clone for SQNBitComputeType
impl Clone for SQNBitComputeType
Source§fn clone(&self) -> SQNBitComputeType
fn clone(&self) -> SQNBitComputeType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SQNBitComputeType
Source§impl Debug for SQNBitComputeType
impl Debug for SQNBitComputeType
impl Eq for SQNBitComputeType
Source§impl PartialEq for SQNBitComputeType
impl PartialEq for SQNBitComputeType
impl StructuralPartialEq for SQNBitComputeType
Auto Trait Implementations§
impl Freeze for SQNBitComputeType
impl RefUnwindSafe for SQNBitComputeType
impl Send for SQNBitComputeType
impl Sync for SQNBitComputeType
impl Unpin for SQNBitComputeType
impl UnsafeUnpin for SQNBitComputeType
impl UnwindSafe for SQNBitComputeType
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