public final class PpDataType
extends java.lang.Object
DataType an the PaddlePaddle internal DataTypes.| Modifier and Type | Method and 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. |
public static ai.djl.ndarray.types.DataType fromPaddlePaddle(int ppType)
DataType.ppType - the type String to convertDataTypepublic static int toPaddlePaddle(ai.djl.ndarray.types.DataType jType)
DataType into the corresponding PaddlePaddle type String.jType - the java DataType to convert