Package ai.djl.ndarray
Enum NDList.Encoding
- java.lang.Object
-
- java.lang.Enum<NDList.Encoding>
-
- ai.djl.ndarray.NDList.Encoding
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NDList.Encoding>
- Enclosing class:
- NDList
public static enum NDList.Encoding extends java.lang.Enum<NDList.Encoding>
An enum represents NDList serialization format.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ND_LIST
NPZ
SAFETENSORS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NDList.Encoding
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NDList.Encoding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ND_LIST
public static final NDList.Encoding ND_LIST
-
NPZ
public static final NDList.Encoding NPZ
-
SAFETENSORS
public static final NDList.Encoding SAFETENSORS
-
-
Method Detail
-
values
public static NDList.Encoding[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NDList.Encoding c : NDList.Encoding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NDList.Encoding valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-