pub enum ExecutionProvider {
Cpu,
Auto,
DirectMl,
CoreMl,
}Expand description
Where inference runs.
Cpu is the default. Auto registers the platform accelerator (DirectML
on Windows, CoreML on macOS) and falls back to CPU, with the reason
recorded, when registration, model load or a probe inference fails.
DirectMl / CoreMl request that accelerator explicitly and fail loudly
instead of falling back.
Variants§
Trait Implementations§
Source§impl Clone for ExecutionProvider
impl Clone for ExecutionProvider
impl Copy for ExecutionProvider
Source§impl Debug for ExecutionProvider
impl Debug for ExecutionProvider
Source§impl Default for ExecutionProvider
impl Default for ExecutionProvider
impl Eq for ExecutionProvider
Source§impl From<ExecutionProvider> for ExecutionProvider
impl From<ExecutionProvider> for ExecutionProvider
Source§fn from(value: ExecutionProvider) -> Self
fn from(value: ExecutionProvider) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExecutionProvider
impl PartialEq for ExecutionProvider
impl StructuralPartialEq for ExecutionProvider
Auto Trait Implementations§
impl Freeze for ExecutionProvider
impl RefUnwindSafe for ExecutionProvider
impl Send for ExecutionProvider
impl Sync for ExecutionProvider
impl Unpin for ExecutionProvider
impl UnsafeUnpin for ExecutionProvider
impl UnwindSafe for ExecutionProvider
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> 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