pub enum TensorDataType {
Show 25 variants
Undefined,
Float,
Uint8,
Int8,
Uint16,
Int16,
Int32,
Int64,
String,
Bool,
Float16,
Double,
Uint32,
Uint64,
Complex64,
Complex128,
BFloat16,
Float8E4M3FN,
Float8E4M3FNUZ,
Float8E5M2,
Float8E5M2FNUZ,
Uint4,
Int4,
Float4E2M1,
Float8E8M0,
}Expand description
The element data type of a Tensor, mirroring ONNX tensor element types.
Variants§
Undefined
Float
Uint8
Int8
Uint16
Int16
Int32
Int64
String
Bool
Float16
Double
Uint32
Uint64
Complex64
Complex128
BFloat16
Float8E4M3FN
Float8E4M3FNUZ
Float8E5M2
Float8E5M2FNUZ
Uint4
Int4
Float4E2M1
Float8E8M0
Trait Implementations§
Source§impl Clone for TensorDataType
impl Clone for TensorDataType
Source§fn clone(&self) -> TensorDataType
fn clone(&self) -> TensorDataType
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 TensorDataType
Source§impl Debug for TensorDataType
impl Debug for TensorDataType
Source§impl Default for TensorDataType
impl Default for TensorDataType
Source§fn default() -> TensorDataType
fn default() -> TensorDataType
Returns the “default value” for a type. Read more
impl Eq for TensorDataType
Source§impl Hash for TensorDataType
impl Hash for TensorDataType
Source§impl PartialEq for TensorDataType
impl PartialEq for TensorDataType
impl StructuralPartialEq for TensorDataType
Auto Trait Implementations§
impl Freeze for TensorDataType
impl RefUnwindSafe for TensorDataType
impl Send for TensorDataType
impl Sync for TensorDataType
impl Unpin for TensorDataType
impl UnsafeUnpin for TensorDataType
impl UnwindSafe for TensorDataType
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
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§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.