public final class DeviceType
extends java.lang.Object
Device.| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
fromDeviceType(int deviceType)
Converts from an MXNet device number to
Device. |
static int |
toDeviceType(ai.djl.Device device)
Converts a
Device to the corresponding MXNet device number. |
public static int toDeviceType(ai.djl.Device device)
Device to the corresponding MXNet device number.device - the java Devicepublic static java.lang.String fromDeviceType(int deviceType)
Device.deviceType - the MXNet device numberDevice