Share via


ExecutionProvider Class

Definition

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
Object Platform::Object IInspectable ExecutionProvider
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.

Applies to