Package org.nd4j.enums
Enum LSTMDataFormat
- java.lang.Object
-
- java.lang.Enum<LSTMDataFormat>
-
- org.nd4j.enums.LSTMDataFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<LSTMDataFormat>
public enum LSTMDataFormat extends Enum<LSTMDataFormat>
for unidirectional: TNS: shape [timeLength, numExamples, inOutSize] - sometimes referred to as "time major"
NST: shape [numExamples, inOutSize, timeLength]
NTS: shape [numExamples, timeLength, inOutSize] - TF "time_major=false" layout
for bidirectional: T2NS: 3 = [timeLength, 2, numExamples, inOutSize] (for ONNX)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LSTMDataFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static LSTMDataFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TNS
public static final LSTMDataFormat TNS
-
NST
public static final LSTMDataFormat NST
-
NTS
public static final LSTMDataFormat NTS
-
T2NS
public static final LSTMDataFormat T2NS
-
-
Method Detail
-
values
public static LSTMDataFormat[] 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 (LSTMDataFormat c : LSTMDataFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LSTMDataFormat valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-