OrtProvider enum
Execution providers for ONNX Runtime.
Implementation Status
✅ Fully Implemented (with dedicated configuration):
- cpu — Always available
- coreML — iOS/macOS with dedicated options
- nnapi — Android with flags (FP16, NCHW, CPU disabled)
- xnnpack — Android with thread configuration
⚠️ Generic API Only (may work but no dedicated support):
Values
- cpu → const OrtProvider
-
CPU execution provider — always available.
const OrtProvider('CPUExecutionProvider') - coreML → const OrtProvider
-
CoreML execution provider for iOS/macOS (fully implemented).
const OrtProvider('CoreMLExecutionProvider') - nnapi → const OrtProvider
-
NNAPI execution provider for Android NPU/GPU (fully implemented). Supports FP16, NCHW, CPU-only flags.
const OrtProvider('NnapiExecutionProvider') - cuda → const OrtProvider
-
CUDA execution provider for NVIDIA GPUs (generic API only).
const OrtProvider('CUDAExecutionProvider') - tensorRT → const OrtProvider
-
TensorRT execution provider for NVIDIA GPUs (generic API only).
const OrtProvider('TensorrtExecutionProvider') - rocm → const OrtProvider
-
ROCm execution provider for AMD GPUs (generic API only).
const OrtProvider('ROCMExecutionProvider') - openVINO → const OrtProvider
-
OpenVINO execution provider for Intel devices (generic API only).
const OrtProvider('OpenVINOExecutionProvider') - dnnl → const OrtProvider
-
DNNL/oneDNN execution provider (generic API only).
const OrtProvider('DnnlExecutionProvider') - qnn → const OrtProvider
-
Qualcomm Neural Network (QNN) provider (generic API only).
const OrtProvider('QNNExecutionProvider') - xnnpack → const OrtProvider
-
XNNPACK execution provider for optimized CPU inference. Uses NEON SIMD on ARM. Fully implemented with thread configuration.
const OrtProvider('XNNPACKExecutionProvider') - webGpu → const OrtProvider
-
WebGPU execution provider for GPU-accelerated inference. Available on Android when compiled with Dawn/WebGPU support.
const OrtProvider('WebGpuExecutionProvider')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - ortName → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
OrtProvider> - A constant List of the values in this enum, in order of their declaration.