pub enum StoredDtype {
Show 19 variants
Bool,
U8,
I8,
I16,
U16,
F16,
BF16,
I32,
U32,
F32,
F64,
I64,
U64,
C64,
F8E4M3,
F4,
F8E8M0,
F8E5M2,
Other(String),
}Expand description
Backend-neutral description of a checkpoint’s stored scalar encoding.
Variants§
Bool
Boolean values.
U8
Unsigned 8-bit integers.
I8
Signed 8-bit integers.
I16
Signed 16-bit integers.
U16
Unsigned 16-bit integers.
F16
IEEE half-precision floating point.
BF16
Brain floating point.
I32
Signed 32-bit integers.
U32
Unsigned 32-bit integers.
F32
IEEE single-precision floating point.
F64
IEEE double-precision floating point.
I64
Signed 64-bit integers.
U64
Unsigned 64-bit integers.
C64
Complex values with two 32-bit floating-point components.
F8E4M3
Encoded FP8 E4M3 bytes.
F4
Packed FP4 E2M1 values.
F8E8M0
Unsigned E8M0 scale bytes used by MX formats.
F8E5M2
Encoded FP8 E5M2 bytes.
Other(String)
Another storage encoding not represented by a named variant.
Trait Implementations§
Source§impl Clone for StoredDtype
impl Clone for StoredDtype
Source§fn clone(&self) -> StoredDtype
fn clone(&self) -> StoredDtype
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 StoredDtype
impl Debug for StoredDtype
impl Eq for StoredDtype
Source§impl From<StoredDtype> for RecipeDtype
impl From<StoredDtype> for RecipeDtype
Source§fn from(value: StoredDtype) -> Self
fn from(value: StoredDtype) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StoredDtype
impl PartialEq for StoredDtype
impl StructuralPartialEq for StoredDtype
Auto Trait Implementations§
impl Freeze for StoredDtype
impl RefUnwindSafe for StoredDtype
impl Send for StoredDtype
impl Sync for StoredDtype
impl Unpin for StoredDtype
impl UnsafeUnpin for StoredDtype
impl UnwindSafe for StoredDtype
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