pub enum TargetDevice {
Cpu,
Gpu,
Cuda,
Mobile,
Wasm,
Web,
Custom(u32),
}Expand description
Target device for model optimization
Variants§
Cpu
CPU device
Gpu
GPU device
Cuda
CUDA GPU device
Mobile
Mobile device
Wasm
WebAssembly target
Web
Web target
Custom(u32)
Custom device
Trait Implementations§
Source§impl Clone for TargetDevice
impl Clone for TargetDevice
Source§fn clone(&self) -> TargetDevice
fn clone(&self) -> TargetDevice
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 TargetDevice
Source§impl Debug for TargetDevice
impl Debug for TargetDevice
Source§impl Default for TargetDevice
impl Default for TargetDevice
impl Eq for TargetDevice
Source§impl PartialEq for TargetDevice
impl PartialEq for TargetDevice
impl StructuralPartialEq for TargetDevice
Auto Trait Implementations§
impl Freeze for TargetDevice
impl RefUnwindSafe for TargetDevice
impl Send for TargetDevice
impl Sync for TargetDevice
impl Unpin for TargetDevice
impl UnsafeUnpin for TargetDevice
impl UnwindSafe for TargetDevice
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more