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§impl PartialOrd for ExecutionTarget
impl PartialOrd for ExecutionTarget
impl Eq for ExecutionTarget
impl StructuralPartialEq for ExecutionTarget
Auto Trait Implementations§
impl Freeze for ExecutionTarget
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