Package ai.onnxruntime
Class OrtHardwareDevice
- java.lang.Object
-
- ai.onnxruntime.OrtHardwareDevice
-
public final class OrtHardwareDevice extends java.lang.Object
Hardware information for a specific device.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OrtHardwareDevice.OrtHardwareDeviceType
The hardware device types.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDeviceId()
Gets the device ID number.java.util.Map<java.lang.String,java.lang.String>
getMetadata()
Gets an unmodifiable view on the device metadata.OrtHardwareDevice.OrtHardwareDeviceType
getType()
Gets the device type.java.lang.String
getVendor()
Gets the vendor name.int
getVendorId()
Gets the vendor ID number.java.lang.String
toString()
-
-
-
Method Detail
-
getType
public OrtHardwareDevice.OrtHardwareDeviceType getType()
Gets the device type.- Returns:
- The device type.
-
getVendorId
public int getVendorId()
Gets the vendor ID number.- Returns:
- The vendor ID number.
-
getDeviceId
public int getDeviceId()
Gets the device ID number.- Returns:
- The device ID number.
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
Gets an unmodifiable view on the device metadata.- Returns:
- The device metadata.
-
getVendor
public java.lang.String getVendor()
Gets the vendor name.- Returns:
- The vendor name.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-