public enum PoolingType extends java.lang.Enum<PoolingType> implements ApiWrapper<org.deeplearning4j.nn.conf.layers.PoolingType>
PoolingType
. This is necessary as Weka's
run script cannot find the enum classes during the option parsing as they reside in the Dl4j
backend and are at that time not visible to the class loader.Enum Constant and Description |
---|
AVG
Average pooling.
|
MAX
Max pooling.
|
MIN
Min pooling.
|
NONE
No pooling.
|
PNORM
PNorm pooling.
|
SUM
Additive pooling.
|
Modifier and Type | Method and Description |
---|---|
static PoolingType |
fromBackend(org.deeplearning4j.nn.conf.layers.PoolingType poolingType)
Parse backend pooling type and return weka enum implementation.
|
org.deeplearning4j.nn.conf.layers.PoolingType |
getBackend()
Access the DL4J backend.
|
void |
initializeBackend()
Initialize the DL4J backend.
|
boolean |
isCustom()
NONE and MIN are not DL4J pooling types, only used for pooling activations
|
void |
setBackend(org.deeplearning4j.nn.conf.layers.PoolingType newBackend)
Set the DL4J backend.
|
static PoolingType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PoolingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PoolingType MAX
public static final PoolingType AVG
public static final PoolingType SUM
public static final PoolingType PNORM
public static final PoolingType NONE
public static final PoolingType MIN
public static PoolingType[] values()
for (PoolingType c : PoolingType.values()) System.out.println(c);
public static PoolingType 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 boolean isCustom()
public static PoolingType fromBackend(org.deeplearning4j.nn.conf.layers.PoolingType poolingType)
poolingType
- Pooling typepublic org.deeplearning4j.nn.conf.layers.PoolingType getBackend()
ApiWrapper
getBackend
in interface ApiWrapper<org.deeplearning4j.nn.conf.layers.PoolingType>
public void setBackend(org.deeplearning4j.nn.conf.layers.PoolingType newBackend)
ApiWrapper
setBackend
in interface ApiWrapper<org.deeplearning4j.nn.conf.layers.PoolingType>
newBackend
- Backend that should be wrapped by this classpublic void initializeBackend()
ApiWrapper
initializeBackend
in interface ApiWrapper<org.deeplearning4j.nn.conf.layers.PoolingType>