Package ai.djl.mxnet.engine
Class MxDeviceType
java.lang.Object
ai.djl.mxnet.engine.MxDeviceType
DeviceType is the MXNet equivalent of the types in
Device.-
Method Summary
Modifier and TypeMethodDescriptionstatic StringfromDeviceType(int deviceType) Converts from an MXNet device number toDevice.static inttoDeviceType(ai.djl.Device device) Converts aDeviceto the corresponding MXNet device number.
-
Method Details
-
toDeviceType
public static int toDeviceType(ai.djl.Device device) Converts aDeviceto the corresponding MXNet device number.- Parameters:
device- the javaDevice- Returns:
- the MXNet device number
-
fromDeviceType
Converts from an MXNet device number toDevice.- Parameters:
deviceType- the MXNet device number- Returns:
- the corresponding
Device
-