#[repr(u32)]pub enum HalDtype {
U8 = 0,
I8 = 1,
U16 = 2,
I16 = 3,
U32 = 4,
I32 = 5,
U64 = 6,
I64 = 7,
F16 = 8,
F32 = 9,
F64 = 10,
}Expand description
Element data type for HAL tensors.
Mirrors hal_dtype from edgefirst-hal-capi (hal.h).
Variants§
U8 = 0
Unsigned 8-bit integer.
I8 = 1
Signed 8-bit integer.
U16 = 2
Unsigned 16-bit integer.
I16 = 3
Signed 16-bit integer.
U32 = 4
Unsigned 32-bit integer.
I32 = 5
Signed 32-bit integer.
U64 = 6
Unsigned 64-bit integer.
I64 = 7
Signed 64-bit integer.
F16 = 8
16-bit floating point (half).
F32 = 9
32-bit floating point (float).
F64 = 10
64-bit floating point (double).
Trait Implementations§
impl Copy for HalDtype
impl Eq for HalDtype
impl StructuralPartialEq for HalDtype
Auto Trait Implementations§
impl Freeze for HalDtype
impl RefUnwindSafe for HalDtype
impl Send for HalDtype
impl Sync for HalDtype
impl Unpin for HalDtype
impl UnsafeUnpin for HalDtype
impl UnwindSafe for HalDtype
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