Enum TensorDeviceKind
pub enum TensorDeviceKind {
Cpu,
Gpu,
Tpu,
Npu,
Metal,
Vulkan,
Wasm,
Unknown,
}Variants§
Implementations§
§impl TensorDeviceKind
impl TensorDeviceKind
Trait Implementations§
§impl Clone for TensorDeviceKind
impl Clone for TensorDeviceKind
§fn clone(&self) -> TensorDeviceKind
fn clone(&self) -> TensorDeviceKind
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 TensorDeviceKind
impl Debug for TensorDeviceKind
§impl Display for TensorDeviceKind
impl Display for TensorDeviceKind
§impl FromStr for TensorDeviceKind
impl FromStr for TensorDeviceKind
§type Err = TensorShapeError
type Err = TensorShapeError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<TensorDeviceKind, <TensorDeviceKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<TensorDeviceKind, <TensorDeviceKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for TensorDeviceKind
impl Hash for TensorDeviceKind
§impl Ord for TensorDeviceKind
impl Ord for TensorDeviceKind
§fn cmp(&self, other: &TensorDeviceKind) -> Ordering
fn cmp(&self, other: &TensorDeviceKind) -> 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
§impl PartialEq for TensorDeviceKind
impl PartialEq for TensorDeviceKind
§impl PartialOrd for TensorDeviceKind
impl PartialOrd for TensorDeviceKind
impl Copy for TensorDeviceKind
impl Eq for TensorDeviceKind
impl StructuralPartialEq for TensorDeviceKind
Auto Trait Implementations§
impl Freeze for TensorDeviceKind
impl RefUnwindSafe for TensorDeviceKind
impl Send for TensorDeviceKind
impl Sync for TensorDeviceKind
impl Unpin for TensorDeviceKind
impl UnsafeUnpin for TensorDeviceKind
impl UnwindSafe for TensorDeviceKind
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