Package org.deeplearning4j.nn.conf
Enum CNN2DFormat
- java.lang.Object
-
- java.lang.Enum<CNN2DFormat>
-
- org.deeplearning4j.nn.conf.CNN2DFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<CNN2DFormat>
,DataFormat
public enum CNN2DFormat extends Enum<CNN2DFormat> implements DataFormat
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
dimensionNames()
Returns a string that explains the dimensions:
NCHW -> returns "[minibatch, channels, height, width]"
NHWC -> returns "[minibatch, height, width, channels]"static CNN2DFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static CNN2DFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NCHW
public static final CNN2DFormat NCHW
-
NHWC
public static final CNN2DFormat NHWC
-
-
Method Detail
-
values
public static CNN2DFormat[] 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 (CNN2DFormat c : CNN2DFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CNN2DFormat 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
-
dimensionNames
public String dimensionNames()
Returns a string that explains the dimensions:
NCHW -> returns "[minibatch, channels, height, width]"
NHWC -> returns "[minibatch, height, width, channels]"
-
-