pub enum DType {
Show 13 variants
F32,
F64,
F16,
BF16,
I64,
I32,
I16,
I8,
U64,
U32,
U16,
U8,
Bool,
}Expand description
Supported dense tensor element types.
Variants§
F32
Elements of type f32.
F64
Elements of type f64.
F16
Elements of type f16.
BF16
Elements of type bf16.
I64
Elements of type i64.
I32
Elements of type i32.
I16
Elements of type i16.
I8
Elements of type i8.
U64
Elements of type u64.
U32
Elements of type u32.
U16
Elements of type u16.
U8
Elements of type u8.
Bool
Elements of type bool.
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 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