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