pub enum TensorDtype {
Show 13 variants
F64,
F32,
F16,
BF16,
I64,
I32,
I16,
I8,
U64,
U32,
U16,
U8,
Bool,
}Expand description
Element dtypes supported by the loaders.
Variants§
F64
IEEE 64-bit float.
F32
IEEE 32-bit float.
F16
IEEE 16-bit half float.
BF16
bfloat16.
I64
Signed 64-bit integer.
I32
Signed 32-bit integer.
I16
Signed 16-bit integer.
I8
Signed 8-bit integer.
U64
Unsigned 64-bit integer.
U32
Unsigned 32-bit integer.
U16
Unsigned 16-bit integer.
U8
Unsigned 8-bit integer (raw packed data, e.g. quantized weights).
Bool
Boolean (stored as one byte).
Implementations§
Trait Implementations§
Source§impl Clone for TensorDtype
impl Clone for TensorDtype
Source§fn clone(&self) -> TensorDtype
fn clone(&self) -> TensorDtype
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TensorDtype
Source§impl Debug for TensorDtype
impl Debug for TensorDtype
Source§impl Display for TensorDtype
impl Display for TensorDtype
impl Eq for TensorDtype
Source§impl PartialEq for TensorDtype
impl PartialEq for TensorDtype
impl StructuralPartialEq for TensorDtype
Auto Trait Implementations§
impl Freeze for TensorDtype
impl RefUnwindSafe for TensorDtype
impl Send for TensorDtype
impl Sync for TensorDtype
impl Unpin for TensorDtype
impl UnsafeUnpin for TensorDtype
impl UnwindSafe for TensorDtype
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.