pub struct CoreMLExecutionProvider { /* private fields */ }
Implementations§
Source§impl CoreMLExecutionProvider
impl CoreMLExecutionProvider
Sourcepub fn with_cpu_only(self) -> Self
pub fn with_cpu_only(self) -> Self
Limit CoreML to running on CPU only. This may decrease the performance but will provide reference output value without precision loss, which is useful for validation.
Sourcepub fn with_subgraphs(self) -> Self
pub fn with_subgraphs(self) -> Self
Enable CoreML EP to run on a subgraph in the body of a control flow operator (i.e. a Loop, Scan or If operator).
Sourcepub fn with_ane_only(self) -> Self
pub fn with_ane_only(self) -> Self
By default the CoreML EP will be enabled for all compatible Apple devices. Setting this option will only enable CoreML EP for Apple devices with a compatible Apple Neural Engine (ANE). Note, enabling this option does not guarantee the entire model to be executed using ANE only.
pub fn build(self) -> ExecutionProviderDispatch
Trait Implementations§
Source§impl Clone for CoreMLExecutionProvider
impl Clone for CoreMLExecutionProvider
Source§fn clone(&self) -> CoreMLExecutionProvider
fn clone(&self) -> CoreMLExecutionProvider
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 CoreMLExecutionProvider
impl Debug for CoreMLExecutionProvider
Source§impl Default for CoreMLExecutionProvider
impl Default for CoreMLExecutionProvider
Source§fn default() -> CoreMLExecutionProvider
fn default() -> CoreMLExecutionProvider
Returns the “default value” for a type. Read more
Source§impl ExecutionProvider for CoreMLExecutionProvider
impl ExecutionProvider for CoreMLExecutionProvider
Source§fn as_str(&self) -> &'static str
fn as_str(&self) -> &'static str
Returns the identifier of this execution provider used internally by ONNX Runtime. Read more
Source§fn supported_by_platform(&self) -> bool
fn supported_by_platform(&self) -> bool
Returns whether this execution provider is supported on this platform. Read more
Source§impl From<CoreMLExecutionProvider> for ExecutionProviderDispatch
impl From<CoreMLExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: CoreMLExecutionProvider) -> Self
fn from(value: CoreMLExecutionProvider) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CoreMLExecutionProvider
impl RefUnwindSafe for CoreMLExecutionProvider
impl Send for CoreMLExecutionProvider
impl Sync for CoreMLExecutionProvider
impl Unpin for CoreMLExecutionProvider
impl UnwindSafe for CoreMLExecutionProvider
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