public final class MxDeviceType
extends java.lang.Object
implements ai.djl.DeviceType
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.toDeviceType in interface ai.djl.DeviceTypedevice - the java Devicepublic static java.lang.String fromDeviceType(int deviceType)
Device.fromDeviceType in interface ai.djl.DeviceTypedeviceType - the MXNet device numberDevice