pub struct ScaledQuantConfig {
pub lhs_format: ScaledFormat,
pub rhs_format: ScaledFormat,
pub scale_layout: ScaleLayout,
}Expand description
Native low-precision GEMM config for CompileOptions::scaled_quant.
Which element formats + scale layout to quantize matmul operands to.
Fields§
§lhs_format: ScaledFormat§rhs_format: ScaledFormat§scale_layout: ScaleLayoutImplementations§
Source§impl ScaledQuantConfig
impl ScaledQuantConfig
Sourcepub fn fp8_e4m3() -> ScaledQuantConfig
pub fn fp8_e4m3() -> ScaledQuantConfig
Per-tensor FP8 E4M3 for both operands (Hopper / Ada default).
Sourcepub fn mxfp8_e4m3() -> ScaledQuantConfig
pub fn mxfp8_e4m3() -> ScaledQuantConfig
OCP microscaling MXFP8 (E4M3 elements, E8M0 block scales).
Trait Implementations§
Source§impl Clone for ScaledQuantConfig
impl Clone for ScaledQuantConfig
Source§fn clone(&self) -> ScaledQuantConfig
fn clone(&self) -> ScaledQuantConfig
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 ScaledQuantConfig
Auto Trait Implementations§
impl Freeze for ScaledQuantConfig
impl RefUnwindSafe for ScaledQuantConfig
impl Send for ScaledQuantConfig
impl Sync for ScaledQuantConfig
impl Unpin for ScaledQuantConfig
impl UnsafeUnpin for ScaledQuantConfig
impl UnwindSafe for ScaledQuantConfig
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