pub enum MmaPrecision {
Fp16Fp32,
Bf16Fp32,
Tf32,
Int8Int32,
Fp32,
}Expand description
Precision mode for tensor core operations.
Variants§
Fp16Fp32
fp16 inputs, fp32 accumulation (HMMA)
Bf16Fp32
bf16 inputs, fp32 accumulation
Tf32
fp32 inputs, fp32 accumulation (TF32 on Ampere+)
Int8Int32
int8 inputs, int32 accumulation (IMMA)
Fp32
Full fp32 (no tensor cores, standard GEMM)
Trait Implementations§
Source§impl Clone for MmaPrecision
impl Clone for MmaPrecision
Source§fn clone(&self) -> MmaPrecision
fn clone(&self) -> MmaPrecision
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 MmaPrecision
Source§impl Debug for MmaPrecision
impl Debug for MmaPrecision
Source§impl PartialEq for MmaPrecision
impl PartialEq for MmaPrecision
Source§fn eq(&self, other: &MmaPrecision) -> bool
fn eq(&self, other: &MmaPrecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MmaPrecision
Auto Trait Implementations§
impl Freeze for MmaPrecision
impl RefUnwindSafe for MmaPrecision
impl Send for MmaPrecision
impl Sync for MmaPrecision
impl Unpin for MmaPrecision
impl UnsafeUnpin for MmaPrecision
impl UnwindSafe for MmaPrecision
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