pub enum DtypeRepr {
Show 13 variants
Bool,
I8,
I16,
I32,
I64,
U8,
U16,
U32,
U64,
F16,
BF16,
F32,
F64,
}Expand description
Runtime dtype tag: the graph-level (type-erased) representation of a tensor’s dtype,
mirroring dtype::Dtype’s implementors.
Variants§
Bool
bool.
I8
Signed 8-bit integer.
I16
Signed 16-bit integer.
I32
Signed 32-bit integer.
I64
Signed 64-bit integer.
U8
Unsigned 8-bit integer.
U16
Unsigned 16-bit integer.
U32
Unsigned 32-bit integer.
U64
Unsigned 64-bit integer.
F16
16-bit float.
BF16
bfloat16.
F32
32-bit float.
F64
64-bit float.
Trait Implementations§
impl Copy for DtypeRepr
impl Eq for DtypeRepr
impl StructuralPartialEq for DtypeRepr
Auto Trait Implementations§
impl Freeze for DtypeRepr
impl RefUnwindSafe for DtypeRepr
impl Send for DtypeRepr
impl Sync for DtypeRepr
impl Unpin for DtypeRepr
impl UnsafeUnpin for DtypeRepr
impl UnwindSafe for DtypeRepr
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