Package org.deeplearning4j.iterator
Enum CnnSentenceDataSetIterator.Format
- java.lang.Object
-
- java.lang.Enum<CnnSentenceDataSetIterator.Format>
-
- org.deeplearning4j.iterator.CnnSentenceDataSetIterator.Format
-
- All Implemented Interfaces:
Serializable
,Comparable<CnnSentenceDataSetIterator.Format>
- Enclosing class:
- CnnSentenceDataSetIterator
public static enum CnnSentenceDataSetIterator.Format extends Enum<CnnSentenceDataSetIterator.Format>
Format of features:
CNN1D: For use with 1d convolution layers: Shape [minibatch, vectorSize, sentenceLength]
CNN2D: For use with 2d convolution layers: Shape [minibatch, 1, vectorSize, sentenceLength] or [minibatch, 1, sentenceLength, vectorSize], depending on the setting for 'sentencesAlongHeight' configuration.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CnnSentenceDataSetIterator.Format
valueOf(String name)
Returns the enum constant of this type with the specified name.static CnnSentenceDataSetIterator.Format[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RNN
public static final CnnSentenceDataSetIterator.Format RNN
-
CNN1D
public static final CnnSentenceDataSetIterator.Format CNN1D
-
CNN2D
public static final CnnSentenceDataSetIterator.Format CNN2D
-
-
Method Detail
-
values
public static CnnSentenceDataSetIterator.Format[] 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 (CnnSentenceDataSetIterator.Format c : CnnSentenceDataSetIterator.Format.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CnnSentenceDataSetIterator.Format 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
-
-