pub enum MixedPrecision {
F16,
Bf16,
}Expand description
Reduced-precision input storage format for a mixed-precision GEMM.
Mixed-precision GEMM stores its A/B operands in a 16-bit format but
accumulates the dot products in f32 (the Tensor-Core / WMMA contract).
This enum names the input storage format; the accumulator and output are
always f32.
Variants§
F16
IEEE-754 binary16 (half): 1 sign, 5 exponent, 10 mantissa bits.
Bf16
Google bfloat16: 1 sign, 8 exponent, 7 mantissa bits (the top 16 bits
of an f32).
Trait Implementations§
Source§impl Clone for MixedPrecision
impl Clone for MixedPrecision
Source§fn clone(&self) -> MixedPrecision
fn clone(&self) -> MixedPrecision
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 MixedPrecision
Source§impl Debug for MixedPrecision
impl Debug for MixedPrecision
Source§impl Display for MixedPrecision
impl Display for MixedPrecision
impl Eq for MixedPrecision
Source§impl Hash for MixedPrecision
impl Hash for MixedPrecision
Source§impl PartialEq for MixedPrecision
impl PartialEq for MixedPrecision
Source§fn eq(&self, other: &MixedPrecision) -> bool
fn eq(&self, other: &MixedPrecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MixedPrecision
Auto Trait Implementations§
impl Freeze for MixedPrecision
impl RefUnwindSafe for MixedPrecision
impl Send for MixedPrecision
impl Sync for MixedPrecision
impl Unpin for MixedPrecision
impl UnsafeUnpin for MixedPrecision
impl UnwindSafe for MixedPrecision
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