#[repr(u8)]pub enum DType {
F16 = 0,
BF16 = 1,
F32 = 2,
F64 = 3,
I32 = 4,
I64 = 5,
U8 = 6,
Bool = 7,
}Expand description
Supported tensor data types
Volta internally uses a byte buffer + dtype tag approach, allowing runtime flexibility for mixed-precision operations and easy loading of external model formats.
Variants§
F16 = 0
16-bit floating point (IEEE 754 half precision)
BF16 = 1
16-bit brain floating point (truncated f32 mantissa)
F32 = 2
32-bit floating point (default)
F64 = 3
64-bit floating point
I32 = 4
32-bit signed integer
I64 = 5
64-bit signed integer
U8 = 6
8-bit unsigned integer
Bool = 7
Boolean (stored as u8)
Implementations§
Trait Implementations§
impl Copy for DType
impl Eq for DType
impl StructuralPartialEq for DType
Auto Trait Implementations§
impl Freeze for DType
impl RefUnwindSafe for DType
impl Send for DType
impl Sync for DType
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.