pub enum DataType {
Float32,
Float16,
Int8,
Int32,
Bool,
UInt8,
Fp8,
BFloat16,
Int64,
Int4,
}Expand description
Element type of a tensor, as reported by the engine.
Variants§
Float32
f32.
Float16
IEEE half.
Int8
Signed 8 bit integer.
Int32
i32.
Bool
One byte per value.
UInt8
Unsigned 8 bit integer.
Fp8
8 bit floating point.
BFloat16
Brain float.
Int64
i64.
Int4
Two values per byte, so a whole-tensor byte count is not elements * size.
Implementations§
Trait Implementations§
impl Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
impl UnwindSafe for DataType
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