#[non_exhaustive]pub enum TensorDataType {
Show 22 variants
Int4,
Int8,
Int16,
Int32,
Int64,
Uint4,
Uint8,
Uint16,
Uint32,
Uint64,
Float16,
Float32,
Float64,
Bfloat16,
String,
Bool,
Complex64,
Complex128,
Float8e4m3fn,
Float8e4m3fnuz,
Float8e5m2,
Float8e5m2fnuz,
}
Available on crate feature
v1_26
only.Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Int4
Int8
Int16
Int32
Int64
Uint4
Uint8
Uint16
Uint32
Uint64
Float16
Float32
Float64
Bfloat16
String
Available on crate feature
v1_28
only.Bool
Available on crate feature
v1_28
only.Complex64
Available on crate feature
v1_28
only.Complex128
Available on crate feature
v1_28
only.Float8e4m3fn
Available on crate feature
v1_28
only.Float8e4m3fnuz
Available on crate feature
v1_28
only.Float8e5m2
Available on crate feature
v1_28
only.Float8e5m2fnuz
Available on crate feature
v1_28
only.Implementations§
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TensorDataType
impl Debug for TensorDataType
Source§impl Display for TensorDataType
Available on crate feature v1_28
only.
impl Display for TensorDataType
Available on crate feature
v1_28
only.Source§impl Hash for TensorDataType
impl Hash for TensorDataType
Source§impl Ord for TensorDataType
impl Ord for TensorDataType
Source§fn cmp(&self, other: &TensorDataType) -> Ordering
fn cmp(&self, other: &TensorDataType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TensorDataType
impl PartialEq for TensorDataType
Source§impl PartialOrd for TensorDataType
impl PartialOrd for TensorDataType
impl Copy for TensorDataType
impl Eq 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 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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more