#[non_exhaustive]pub enum ExecutionProvider {
Show 13 variants
CPU(CPUExecutionProviderOptions),
CUDA(CUDAExecutionProviderOptions),
TensorRT(TensorRTExecutionProviderOptions),
OpenVINO(OpenVINOExecutionProviderOptions),
ACL(ACLExecutionProviderOptions),
OneDNN(OneDNNExecutionProviderOptions),
CoreML(CoreMLExecutionProviderOptions),
DirectML(DirectMLExecutionProviderOptions),
ROCm(ROCmExecutionProviderOptions),
NNAPI(NNAPIExecutionProviderOptions),
QNN(QNNExecutionProviderOptions),
TVM(TVMExecutionProviderOptions),
CANN(CANNExecutionProviderOptions),
}
Expand description
Execution provider container. See the ONNX Runtime docs for more
info on execution providers. Execution providers are actually registered via the functions crate::SessionBuilder
(per-session) or EnvBuilder
(default for all sessions in an environment).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CPU(CPUExecutionProviderOptions)
CUDA(CUDAExecutionProviderOptions)
TensorRT(TensorRTExecutionProviderOptions)
OpenVINO(OpenVINOExecutionProviderOptions)
ACL(ACLExecutionProviderOptions)
OneDNN(OneDNNExecutionProviderOptions)
CoreML(CoreMLExecutionProviderOptions)
DirectML(DirectMLExecutionProviderOptions)
ROCm(ROCmExecutionProviderOptions)
NNAPI(NNAPIExecutionProviderOptions)
QNN(QNNExecutionProviderOptions)
TVM(TVMExecutionProviderOptions)
CANN(CANNExecutionProviderOptions)
Implementations§
Trait Implementations§
source§impl Clone for ExecutionProvider
impl Clone for ExecutionProvider
source§fn clone(&self) -> ExecutionProvider
fn clone(&self) -> ExecutionProvider
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ExecutionProvider
impl !Send for ExecutionProvider
impl !Sync for ExecutionProvider
impl Unpin 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