Package ai.djl
Interface DeviceType
-
public interface DeviceTypeDeviceTypeis a class used to map the Device name to their corresponding type number.
-
-
Method Summary
Static Methods Modifier and Type Method Description static java.lang.StringfromDeviceType(int deviceType)Map device to its type number.static inttoDeviceType(Device device)Map device to its type number.
-
-
-
Method Detail
-
toDeviceType
static int toDeviceType(Device device)
Map device to its type number.- Parameters:
device-Deviceto map from- Returns:
- the number specified by engine
-
fromDeviceType
static java.lang.String fromDeviceType(int deviceType)
Map device to its type number.- Parameters:
deviceType- the number specified by engine- Returns:
Deviceto map to
-
-