Package ai.onnxruntime
Class OrtHardwareDevice
- java.lang.Object
-
- ai.onnxruntime.OrtHardwareDevice
-
public final class OrtHardwareDevice extends java.lang.ObjectHardware information for a specific device.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOrtHardwareDevice.OrtHardwareDeviceTypeThe hardware device types.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDeviceId()Gets the device ID number.java.util.Map<java.lang.String,java.lang.String>getMetadata()Gets an unmodifiable view on the device metadata.OrtHardwareDevice.OrtHardwareDeviceTypegetType()Gets the device type.java.lang.StringgetVendor()Gets the vendor name.intgetVendorId()Gets the vendor ID number.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-