pub enum DataType {
F16,
BF16,
F32,
F64,
ComplexF32,
ComplexF64,
I8,
U8,
I32,
U32,
}Expand description
Element dtype for tensor descriptors.
Variants§
F16
IEEE-754 half-precision (f16).
BF16
Brain float (bf16).
F32
Single-precision float (f32).
F64
Double-precision float (f64).
ComplexF32
Single-precision complex (real + imag f32).
ComplexF64
Double-precision complex (real + imag f64).
I8
Signed 8-bit integer.
U8
Unsigned 8-bit integer.
I32
Signed 32-bit integer.
U32
Unsigned 32-bit integer.
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