pub enum Fp8Variant {
E4M3,
E5M2,
}Expand description
Which OCP FP8 encoding to target.
Variants§
E4M3
4 exponent bits, 3 mantissa bits, no infinities (safetensors F8_E4M3).
E5M2
5 exponent bits, 2 mantissa bits, IEEE-like (safetensors F8_E5M2).
Trait Implementations§
Source§impl Clone for Fp8Variant
impl Clone for Fp8Variant
Source§fn clone(&self) -> Fp8Variant
fn clone(&self) -> Fp8Variant
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 moreSource§impl Debug for Fp8Variant
impl Debug for Fp8Variant
Source§impl PartialEq for Fp8Variant
impl PartialEq for Fp8Variant
Source§fn eq(&self, other: &Fp8Variant) -> bool
fn eq(&self, other: &Fp8Variant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Fp8Variant
impl Eq for Fp8Variant
impl StructuralPartialEq for Fp8Variant
Auto Trait Implementations§
impl Freeze for Fp8Variant
impl RefUnwindSafe for Fp8Variant
impl Send for Fp8Variant
impl Sync for Fp8Variant
impl Unpin for Fp8Variant
impl UnsafeUnpin for Fp8Variant
impl UnwindSafe for Fp8Variant
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.