Class OrtHardwareDevice
Represents a hardware device that is available on the current system.
Inherited Members
Namespace: Microsoft.ML.OnnxRuntime
Assembly: Microsoft.ML.OnnxRuntime.dll
Syntax
public class OrtHardwareDevice
Properties
| Improve this Doc View SourceDeviceId
Get the device ID of the hardware device if known.
Declaration
public uint DeviceId { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Remarks
This is the identifier of the device model. PCIe device IDs can be looked up at https://www.pcilookup.com/ when combined with the VendorId. It is NOT a unique identifier for the device in the current system.
Metadata
Get device metadata. This may include information such as whether a GPU is discrete or integrated. The available metadata will differ by platform and device type.
Declaration
public OrtKeyValuePairs Metadata { get; }
Property Value
| Type | Description |
|---|---|
| OrtKeyValuePairs |
Type
Get the type of hardware device.
Declaration
public OrtHardwareDeviceType Type { get; }
Property Value
| Type | Description |
|---|---|
| OrtHardwareDeviceType |
Vendor
The vendor (manufacturer) of the hardware device.
Declaration
public string Vendor { get; }
Property Value
| Type | Description |
|---|---|
| string |
VendorId
Get the vendor ID of the hardware device if known.
Declaration
public uint VendorId { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Remarks
For PCIe devices the vendor ID is the PCIe vendor ID. See https://pcisig.com/membership/member-companies.