#[non_exhaustive]pub enum DType {
U8,
F16,
F32,
I32,
U32,
}Expand description
Scalar data representation of an OA value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
U8
8-bit unsigned integer, including byte-oriented media and cryptography.
F16
IEEE 754 binary16 half-precision floating point. Storage only: arithmetic widens to F32 (the FP16-storage/FP32-accumulate mode).
F32
IEEE 754 single-precision floating point.
I32
32-bit signed integer.
U32
32-bit unsigned integer.
Implementations§
Trait Implementations§
impl Copy for DType
impl Eq for DType
impl StructuralPartialEq for DType
Auto Trait Implementations§
impl Forget for DType
impl Freeze for DType
impl Move for DType
impl RefUnwindSafe for DType
impl Send for DType
impl Sync for DType
impl Unpin for DType
impl UnsafeUnpin for DType
impl UnwindSafe for DType
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