#[non_exhaustive]pub struct ExecutionProviderDispatch { /* private fields */ }Expand description
Dynamic execution provider container, used to provide a list of multiple types of execution providers when
configuring execution providers for a SessionBuilder or
EnvironmentBuilder.
See ExecutionProvider for more info on execution providers.
Implementations§
Source§impl ExecutionProviderDispatch
impl ExecutionProviderDispatch
Sourcepub fn fail_silently(self) -> ExecutionProviderDispatch
pub fn fail_silently(self) -> ExecutionProviderDispatch
Configures this execution provider to silently log an error if registration of the EP fails.
This is the default behavior; it can be overridden with ExecutionProviderDispatch::error_on_failure.
Sourcepub fn error_on_failure(self) -> ExecutionProviderDispatch
pub fn error_on_failure(self) -> ExecutionProviderDispatch
Configures this execution provider to return an error upon EP registration if registration of this EP fails. The default behavior is to silently fail and fall back to the next execution provider, or the CPU provider if no registrations succeed.
Trait Implementations§
Source§impl Clone for ExecutionProviderDispatch
impl Clone for ExecutionProviderDispatch
Source§fn clone(&self) -> ExecutionProviderDispatch
fn clone(&self) -> ExecutionProviderDispatch
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 ExecutionProviderDispatch
impl Debug for ExecutionProviderDispatch
Source§impl From<ACLExecutionProvider> for ExecutionProviderDispatch
impl From<ACLExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: ACLExecutionProvider) -> ExecutionProviderDispatch
fn from(value: ACLExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<ArmNNExecutionProvider> for ExecutionProviderDispatch
impl From<ArmNNExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: ArmNNExecutionProvider) -> ExecutionProviderDispatch
fn from(value: ArmNNExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<CANNExecutionProvider> for ExecutionProviderDispatch
impl From<CANNExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: CANNExecutionProvider) -> ExecutionProviderDispatch
fn from(value: CANNExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<CPUExecutionProvider> for ExecutionProviderDispatch
impl From<CPUExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: CPUExecutionProvider) -> ExecutionProviderDispatch
fn from(value: CPUExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<CUDAExecutionProvider> for ExecutionProviderDispatch
impl From<CUDAExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: CUDAExecutionProvider) -> ExecutionProviderDispatch
fn from(value: CUDAExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<CoreMLExecutionProvider> for ExecutionProviderDispatch
impl From<CoreMLExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: CoreMLExecutionProvider) -> ExecutionProviderDispatch
fn from(value: CoreMLExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<DirectMLExecutionProvider> for ExecutionProviderDispatch
impl From<DirectMLExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: DirectMLExecutionProvider) -> ExecutionProviderDispatch
fn from(value: DirectMLExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<MIGraphXExecutionProvider> for ExecutionProviderDispatch
impl From<MIGraphXExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: MIGraphXExecutionProvider) -> ExecutionProviderDispatch
fn from(value: MIGraphXExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<NNAPIExecutionProvider> for ExecutionProviderDispatch
impl From<NNAPIExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: NNAPIExecutionProvider) -> ExecutionProviderDispatch
fn from(value: NNAPIExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<OneDNNExecutionProvider> for ExecutionProviderDispatch
impl From<OneDNNExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: OneDNNExecutionProvider) -> ExecutionProviderDispatch
fn from(value: OneDNNExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<OpenVINOExecutionProvider> for ExecutionProviderDispatch
impl From<OpenVINOExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: OpenVINOExecutionProvider) -> ExecutionProviderDispatch
fn from(value: OpenVINOExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<QNNExecutionProvider> for ExecutionProviderDispatch
impl From<QNNExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: QNNExecutionProvider) -> ExecutionProviderDispatch
fn from(value: QNNExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<RKNPUExecutionProvider> for ExecutionProviderDispatch
impl From<RKNPUExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: RKNPUExecutionProvider) -> ExecutionProviderDispatch
fn from(value: RKNPUExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<ROCmExecutionProvider> for ExecutionProviderDispatch
impl From<ROCmExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: ROCmExecutionProvider) -> ExecutionProviderDispatch
fn from(value: ROCmExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<TVMExecutionProvider> for ExecutionProviderDispatch
impl From<TVMExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: TVMExecutionProvider) -> ExecutionProviderDispatch
fn from(value: TVMExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<TensorRTExecutionProvider> for ExecutionProviderDispatch
impl From<TensorRTExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: TensorRTExecutionProvider) -> ExecutionProviderDispatch
fn from(value: TensorRTExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<VitisAIExecutionProvider> for ExecutionProviderDispatch
impl From<VitisAIExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: VitisAIExecutionProvider) -> ExecutionProviderDispatch
fn from(value: VitisAIExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Source§impl From<XNNPACKExecutionProvider> for ExecutionProviderDispatch
impl From<XNNPACKExecutionProvider> for ExecutionProviderDispatch
Source§fn from(value: XNNPACKExecutionProvider) -> ExecutionProviderDispatch
fn from(value: XNNPACKExecutionProvider) -> ExecutionProviderDispatch
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExecutionProviderDispatch
impl !RefUnwindSafe for ExecutionProviderDispatch
impl Send for ExecutionProviderDispatch
impl Sync for ExecutionProviderDispatch
impl Unpin for ExecutionProviderDispatch
impl !UnwindSafe for ExecutionProviderDispatch
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
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