Class MxDataType

java.lang.Object
ai.djl.mxnet.engine.MxDataType

public final class MxDataType extends Object
Helper to convert between DataType an the MXNet internal DataTypes.
  • Method Details

    • fromMx

      public static ai.djl.ndarray.types.DataType fromMx(String mxType)
      Converts a MXNet type String into a DataType.
      Parameters:
      mxType - the type String to convert
      Returns:
      the DataType
    • toMx

      public static String toMx(ai.djl.ndarray.types.DataType jType)
      Converts a DataType into the corresponding MXNet type String.
      Parameters:
      jType - the java DataType to convert
      Returns:
      the converted MXNet type string