Table of Contents

Class OnnxExecutionProviderPolicy

Namespace
Qavren.Edge.Onnx
Assembly
Qavren.Edge.Onnx.dll

How a session picks and configures its execution providers.

public sealed class OnnxExecutionProviderPolicy
Inheritance
OnnxExecutionProviderPolicy
Inherited Members

Properties

CoreMl

CoreML's options.

FallBackToCpu

Whether CPU is appended last as the universal fallback. Default true.

GraphOptimization

The graph-optimization level handed to ORT. Default ORT_ENABLE_ALL.

IntraOpNumThreads

0 lets ORT choose. Forced to 1 whenever XNNPACK is accepted, per ORT's own anti-contention guidance.

Order

Tried in order; the first that appends without throwing wins. CPU is appended last whenever FallBackToCpu is true. Null uses the per-RID default in spec 9.2.

Overrides

Merged over the computed options, keyed by ORT's provider name ("CoreML", "XNNPACK"). Any other key is rejected before a single provider is appended - in particular "NNAPI", which this package does not offer at all (ADR 0004).

Required

Failure of a required provider throws instead of falling through.

XnnPack

XNNPACK's options.