pub enum TensorDType {
Show 17 variants
Bool,
Int8,
Int16,
Int32,
Int64,
Uint8,
Uint16,
Uint32,
Uint64,
Float16,
BFloat16,
Float32,
Float64,
Complex64,
Complex128,
String,
Unknown,
}Variants§
Bool
Int8
Int16
Int32
Int64
Uint8
Uint16
Uint32
Uint64
Float16
BFloat16
Float32
Float64
Complex64
Complex128
String
Unknown
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 moreSource§impl Debug for TensorDType
impl Debug for TensorDType
Source§impl Display for TensorDType
impl Display for TensorDType
Source§impl FromStr for TensorDType
impl FromStr for TensorDType
Source§type Err = TensorShapeError
type Err = TensorShapeError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<TensorDType, <TensorDType as FromStr>::Err>
fn from_str(value: &str) -> Result<TensorDType, <TensorDType as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for TensorDType
impl Hash for TensorDType
Source§impl Ord for TensorDType
impl Ord for TensorDType
Source§fn cmp(&self, other: &TensorDType) -> Ordering
fn cmp(&self, other: &TensorDType) -> Ordering
1.21.0 (const: unstable) · 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 TensorDType
impl PartialEq for TensorDType
Source§fn eq(&self, other: &TensorDType) -> bool
fn eq(&self, other: &TensorDType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TensorDType
impl PartialOrd for TensorDType
impl Copy for TensorDType
impl Eq 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