public final class MxDataType
extends java.lang.Object
DataType an the MXNet internal DataTypes.| Modifier and Type | Method and Description |
|---|---|
static ai.djl.ndarray.types.DataType |
fromMx(java.lang.String mxType)
Converts a MXNet type String into a
DataType. |
static java.lang.String |
toMx(ai.djl.ndarray.types.DataType jType)
Converts a
DataType into the corresponding MXNet type String. |
public static ai.djl.ndarray.types.DataType fromMx(java.lang.String mxType)
DataType.mxType - the type String to convertDataTypepublic static java.lang.String toMx(ai.djl.ndarray.types.DataType jType)
DataType into the corresponding MXNet type String.jType - the java DataType to convert