public enum GradientNormalization extends java.lang.Enum<GradientNormalization> implements ApiWrapper<org.deeplearning4j.nn.conf.GradientNormalization>
GradientNormalization
. 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 |
---|
ClipElementWiseAbsoluteValue |
ClipL2PerLayer |
ClipL2PerParamType |
None |
RenormalizeL2PerLayer |
RenormalizeL2PerParamType |
Modifier and Type | Method and Description |
---|---|
static GradientNormalization |
fromBackend(org.deeplearning4j.nn.conf.GradientNormalization gradientNormalization)
Parse backend gradient normalization and return weka enum implementation.
|
org.deeplearning4j.nn.conf.GradientNormalization |
getBackend()
Access the DL4J backend.
|
void |
initializeBackend()
Initialize the DL4J backend.
|
void |
setBackend(org.deeplearning4j.nn.conf.GradientNormalization newBackend)
Set the DL4J backend.
|
static GradientNormalization |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GradientNormalization[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GradientNormalization None
public static final GradientNormalization RenormalizeL2PerLayer
public static final GradientNormalization RenormalizeL2PerParamType
public static final GradientNormalization ClipElementWiseAbsoluteValue
public static final GradientNormalization ClipL2PerLayer
public static final GradientNormalization ClipL2PerParamType
public static GradientNormalization[] values()
for (GradientNormalization c : GradientNormalization.values()) System.out.println(c);
public static GradientNormalization 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 static GradientNormalization fromBackend(org.deeplearning4j.nn.conf.GradientNormalization gradientNormalization)
gradientNormalization
- GradientNormalizationpublic org.deeplearning4j.nn.conf.GradientNormalization getBackend()
ApiWrapper
getBackend
in interface ApiWrapper<org.deeplearning4j.nn.conf.GradientNormalization>
public void setBackend(org.deeplearning4j.nn.conf.GradientNormalization newBackend)
ApiWrapper
setBackend
in interface ApiWrapper<org.deeplearning4j.nn.conf.GradientNormalization>
newBackend
- Backend that should be wrapped by this classpublic void initializeBackend()
ApiWrapper
initializeBackend
in interface ApiWrapper<org.deeplearning4j.nn.conf.GradientNormalization>