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