Enum Pooling2D.Divisor
- java.lang.Object
-
- java.lang.Enum<Pooling2D.Divisor>
-
- org.nd4j.linalg.api.ops.impl.layers.convolution.Pooling2D.Divisor
-
- All Implemented Interfaces:
Serializable
,Comparable<Pooling2D.Divisor>
- Enclosing class:
- Pooling2D
public static enum Pooling2D.Divisor extends Enum<Pooling2D.Divisor>
Divisor mode for average pooling only. 3 modes are supported: MODE_0: EXCLUDE_PADDING: INCLUDE_PADDING: Always do sum(window) / (kH*kW) even if padding is present.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXCLUDE_PADDING
INCLUDE_PADDING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Pooling2D.Divisor
valueOf(String name)
Returns the enum constant of this type with the specified name.static Pooling2D.Divisor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXCLUDE_PADDING
public static final Pooling2D.Divisor EXCLUDE_PADDING
-
INCLUDE_PADDING
public static final Pooling2D.Divisor INCLUDE_PADDING
-
-
Method Detail
-
values
public static Pooling2D.Divisor[] 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 (Pooling2D.Divisor c : Pooling2D.Divisor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Pooling2D.Divisor 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
-
-