#[repr(u8)]pub enum AcceleratorType {
Unknown = 0,
Tpu = 1,
Npu = 2,
Fpga = 3,
Asic = 4,
Dsp = 5,
}Expand description
Accelerator type
Variants§
Unknown = 0
Unrecognized or unspecified accelerator type.
Tpu = 1
Tensor Processing Unit (e.g., Google TPU).
Npu = 2
Neural Processing Unit for on-device AI inference.
Fpga = 3
Field-Programmable Gate Array.
Asic = 4
Application-Specific Integrated Circuit.
Dsp = 5
Digital Signal Processor.
Trait Implementations§
Source§impl Clone for AcceleratorType
impl Clone for AcceleratorType
Source§fn clone(&self) -> AcceleratorType
fn clone(&self) -> AcceleratorType
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 AcceleratorType
Source§impl Debug for AcceleratorType
impl Debug for AcceleratorType
Source§impl Default for AcceleratorType
impl Default for AcceleratorType
Source§fn default() -> AcceleratorType
fn default() -> AcceleratorType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AcceleratorType
impl<'de> Deserialize<'de> for AcceleratorType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AcceleratorType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AcceleratorType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AcceleratorType
Source§impl From<u8> for AcceleratorType
impl From<u8> for AcceleratorType
Source§fn from(v: u8) -> AcceleratorType
fn from(v: u8) -> AcceleratorType
Converts to this type from the input type.
Source§impl Hash for AcceleratorType
impl Hash for AcceleratorType
Source§impl PartialEq for AcceleratorType
impl PartialEq for AcceleratorType
Source§fn eq(&self, other: &AcceleratorType) -> bool
fn eq(&self, other: &AcceleratorType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AcceleratorType
impl Serialize for AcceleratorType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AcceleratorType
Auto Trait Implementations§
impl Freeze for AcceleratorType
impl RefUnwindSafe for AcceleratorType
impl Send for AcceleratorType
impl Sync for AcceleratorType
impl Unpin for AcceleratorType
impl UnsafeUnpin for AcceleratorType
impl UnwindSafe for AcceleratorType
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> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.