pub enum FloatKind {
E2M1,
E2M3,
E3M2,
E4M3,
E5M2,
UE8M0,
F16,
BF16,
Flex32,
F32,
TF32,
F64,
}Variants§
E2M1
FP4, 2 bit exponent, 1 bit mantissa
E2M3
FP6, 2 bit exponent, 3 bit mantissa Note: represented by an 8-bit value, with the upper two bits being insignificant
E3M2
FP6, 3 bit exponent, 2 bit mantissa Note: represented by an 8-bit value, with the upper two bits being insignificant
E4M3
FP8, 4 bit exponent, 3 bit mantissa
E5M2
FP8, 5 bit exponent, 2 bit mantissa
UE8M0
FP8, unsigned, 8 bit exponent, 0 bit mantissa
F16
BF16
Flex32
F32
TF32
F64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FloatKind
impl<'de> Deserialize<'de> for FloatKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FloatKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FloatKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<FloatKind> for StorageType
impl From<FloatKind> for StorageType
Source§fn from(value: FloatKind) -> StorageType
fn from(value: FloatKind) -> StorageType
Converts to this type from the input type.
Source§impl Ord for FloatKind
impl Ord for FloatKind
Source§impl PartialOrd for FloatKind
impl PartialOrd for FloatKind
Source§impl Serialize for FloatKind
impl Serialize for FloatKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for FloatKind
impl Eq for FloatKind
impl StructuralPartialEq for FloatKind
Auto Trait Implementations§
impl Freeze for FloatKind
impl RefUnwindSafe for FloatKind
impl Send for FloatKind
impl Sync for FloatKind
impl Unpin for FloatKind
impl UnwindSafe for FloatKind
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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.