public enum PoolingConvention extends java.lang.Enum<PoolingConvention>
Modifier and Type | Method and Description |
---|---|
long |
getOutput(long input,
long kernel,
long stride,
long pad)
Computes the size of the output in the given input dimension for this
PoolingConvention . |
static PoolingConvention |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PoolingConvention[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PoolingConvention VALID
public static final PoolingConvention FULL
public static PoolingConvention[] values()
for (PoolingConvention c : PoolingConvention.values()) System.out.println(c);
public static PoolingConvention valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic long getOutput(long input, long kernel, long stride, long pad)
PoolingConvention
.input
- the input size in the dimensionkernel
- the kernel size in the dimensionstride
- the stride size in the dimensionpad
- the pad size in the dimension