T
- Layer implementationpublic abstract class Layer<T extends org.deeplearning4j.nn.conf.layers.Layer> extends java.lang.Object implements ApiWrapper<T>, weka.core.OptionHandler, java.io.Serializable
Constructor and Description |
---|
Layer() |
Modifier and Type | Method and Description |
---|---|
static Layer<? extends org.deeplearning4j.nn.conf.layers.Layer> |
create(org.deeplearning4j.nn.conf.layers.Layer newBackend)
Create an API wrapped layer from a given layer object.
|
T |
getBackend()
Access the DL4J backend.
|
java.lang.String |
getLayerName() |
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setBackend(T newBackend)
Set the DL4J backend.
|
void |
setLayerName(java.lang.String layerName) |
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeBackend
public static Layer<? extends org.deeplearning4j.nn.conf.layers.Layer> create(org.deeplearning4j.nn.conf.layers.Layer newBackend)
newBackend
- Backend objectpublic T getBackend()
ApiWrapper
getBackend
in interface ApiWrapper<T extends org.deeplearning4j.nn.conf.layers.Layer>
public void setBackend(T newBackend)
ApiWrapper
setBackend
in interface ApiWrapper<T extends org.deeplearning4j.nn.conf.layers.Layer>
newBackend
- Backend that should be wrapped by this class@OptionMetadata(displayName="layer name", description="The name of the layer (default = Batch normalization Layer).", commandLineParamName="name", commandLineParamSynopsis="-name <string>", displayOrder=0) public java.lang.String getLayerName()
public void setLayerName(java.lang.String layerName)
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supported