Enum wasmedge_sdk::plugin::ExecutionTarget
source · pub enum ExecutionTarget {
CPU,
GPU,
TPU,
AUTO,
}
Available on crate feature
wasi_nn
only.Expand description
Define where the graph should be executed.
Variants§
Trait Implementations§
source§impl Clone for ExecutionTarget
impl Clone for ExecutionTarget
source§fn clone(&self) -> ExecutionTarget
fn clone(&self) -> ExecutionTarget
Returns a copy 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 ExecutionTarget
impl Debug for ExecutionTarget
source§impl Display for ExecutionTarget
impl Display for ExecutionTarget
source§impl FromStr for ExecutionTarget
impl FromStr for ExecutionTarget
source§impl Ord for ExecutionTarget
impl Ord for ExecutionTarget
source§fn cmp(&self, other: &ExecutionTarget) -> Ordering
fn cmp(&self, other: &ExecutionTarget) -> 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 ExecutionTarget
impl PartialEq for ExecutionTarget
source§fn eq(&self, other: &ExecutionTarget) -> bool
fn eq(&self, other: &ExecutionTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ExecutionTarget
impl PartialOrd for ExecutionTarget
source§fn partial_cmp(&self, other: &ExecutionTarget) -> Option<Ordering>
fn partial_cmp(&self, other: &ExecutionTarget) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ExecutionTarget
impl StructuralEq for ExecutionTarget
impl StructuralPartialEq for ExecutionTarget
Auto Trait Implementations§
impl RefUnwindSafe for ExecutionTarget
impl Send for ExecutionTarget
impl Sync for ExecutionTarget
impl Unpin for ExecutionTarget
impl UnwindSafe for ExecutionTarget
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