Enum TensorDType
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§
§impl TensorDType
impl TensorDType
Trait Implementations§
§impl Clone for TensorDType
impl Clone for TensorDType
§fn clone(&self) -> TensorDType
fn clone(&self) -> TensorDType
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 more§impl Debug for TensorDType
impl Debug for TensorDType
§impl Display for TensorDType
impl Display for TensorDType
§impl FromStr for TensorDType
impl FromStr for TensorDType
§type Err = TensorShapeError
type Err = TensorShapeError
The associated error which can be returned from parsing.
§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 more§impl Hash for TensorDType
impl Hash for TensorDType
§impl Ord for TensorDType
impl Ord for TensorDType
§impl PartialEq for TensorDType
impl PartialEq for TensorDType
§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