ExecutionProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a specific hardware accelerator that can be used for machine learning inference.
public ref class ExecutionProvider sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.AI.MachineLearning.MachineLearningContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ExecutionProvider final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.AI.MachineLearning.MachineLearningContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ExecutionProvider
Public NotInheritable Class ExecutionProvider
- Inheritance
- Attributes
Properties
| Name | Description |
|---|---|
| Certification | |
| LibraryPath |
Gets the type of device (CPU, GPU, NPU, etc.). |
| Name |
Gets the name of the execution provider. |
| PackageId | |
| ReadyState | |
Methods
| Name | Description |
|---|---|
| EnsureReadyAsync() |
Ensures that the execution provider is ready for use by downloading and installing any required components. |
| TryRegister() |
Attempts to register the execution provider with ONNX Runtime, and returns a Boolean value indicating success. |