Enum ExecutionProviderDevicePolicy
Controls the execution provider selection when using automatic EP selection. Execution providers must be registered with the OrtEnv to be available for selection.
Namespace: Microsoft.ML.OnnxRuntime
Assembly: Microsoft.ML.OnnxRuntime.dll
Syntax
public enum ExecutionProviderDevicePolicy
Fields
| Name | Description |
|---|---|
| DEFAULT | Controls the execution provider selection when using automatic EP selection. Execution providers must be registered with the OrtEnv to be available for selection. |
| MAX_EFFICIENCY | Controls the execution provider selection when using automatic EP selection. Execution providers must be registered with the OrtEnv to be available for selection. |
| MAX_PERFORMANCE | Controls the execution provider selection when using automatic EP selection. Execution providers must be registered with the OrtEnv to be available for selection. |
| MIN_OVERALL_POWER | Controls the execution provider selection when using automatic EP selection. Execution providers must be registered with the OrtEnv to be available for selection. |
| PREFER_CPU | Controls the execution provider selection when using automatic EP selection. Execution providers must be registered with the OrtEnv to be available for selection. |
| PREFER_GPU | Controls the execution provider selection when using automatic EP selection. Execution providers must be registered with the OrtEnv to be available for selection. |
| PREFER_NPU | Controls the execution provider selection when using automatic EP selection. Execution providers must be registered with the OrtEnv to be available for selection. |