Class PpDataType


  • public final class PpDataType
    extends java.lang.Object
    Helper to convert between DataType an the PaddlePaddle internal DataTypes.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ai.djl.ndarray.types.DataType fromPaddlePaddle​(int ppType)
      Converts a PaddlePaddle type String into a DataType.
      static int toPaddlePaddle​(ai.djl.ndarray.types.DataType jType)
      Converts a DataType into the corresponding PaddlePaddle type String.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • fromPaddlePaddle

        public static ai.djl.ndarray.types.DataType fromPaddlePaddle​(int ppType)
        Converts a PaddlePaddle type String into a DataType.
        Parameters:
        ppType - the type String to convert
        Returns:
        the DataType
      • toPaddlePaddle

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