Struct ort::CPUExecutionProvider
source · pub struct CPUExecutionProvider { /* private fields */ }
Implementations§
source§impl CPUExecutionProvider
impl CPUExecutionProvider
pub fn with_arena_allocator(self) -> Self
pub fn build(self) -> ExecutionProviderDispatch
Trait Implementations§
source§impl Clone for CPUExecutionProvider
impl Clone for CPUExecutionProvider
source§fn clone(&self) -> CPUExecutionProvider
fn clone(&self) -> CPUExecutionProvider
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 CPUExecutionProvider
impl Debug for CPUExecutionProvider
source§impl Default for CPUExecutionProvider
impl Default for CPUExecutionProvider
source§fn default() -> CPUExecutionProvider
fn default() -> CPUExecutionProvider
Returns the “default value” for a type. Read more
source§impl ExecutionProvider for CPUExecutionProvider
impl ExecutionProvider for CPUExecutionProvider
source§fn is_available(&self) -> Result<bool>
fn is_available(&self) -> Result<bool>
The CPU execution provider is always available.
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<CPUExecutionProvider> for ExecutionProviderDispatch
impl From<CPUExecutionProvider> for ExecutionProviderDispatch
source§fn from(value: CPUExecutionProvider) -> Self
fn from(value: CPUExecutionProvider) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CPUExecutionProvider
impl RefUnwindSafe for CPUExecutionProvider
impl Send for CPUExecutionProvider
impl Sync for CPUExecutionProvider
impl Unpin for CPUExecutionProvider
impl UnwindSafe for CPUExecutionProvider
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