public class MultiLayerConfiguration extends Object implements Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
MultiLayerConfiguration.Builder |
Modifier and Type | Field and Description |
---|---|
protected boolean |
backprop |
protected BackpropType |
backpropType |
protected CacheMode |
cacheMode |
protected List<NeuralNetConfiguration> |
confs |
protected WorkspaceMode |
inferenceWorkspaceMode |
protected Map<Integer,InputPreProcessor> |
inputPreProcessors |
protected int |
iterationCount |
protected boolean |
pretrain |
protected int |
tbpttBackLength |
protected int |
tbpttFwdLength |
protected WorkspaceMode |
trainingWorkspaceMode |
Constructor and Description |
---|
MultiLayerConfiguration() |
Modifier and Type | Method and Description |
---|---|
MultiLayerConfiguration |
clone() |
static MultiLayerConfiguration |
fromJson(String json)
Create a neural net configuration from json
|
static MultiLayerConfiguration |
fromYaml(String json)
Create a neural net configuration from json
|
NeuralNetConfiguration |
getConf(int i) |
InputPreProcessor |
getInputPreProcess(int curr) |
NetworkMemoryReport |
getMemoryReport(InputType inputType)
Get a
MemoryReport for the given MultiLayerConfiguration. |
String |
toJson() |
String |
toString() |
String |
toYaml() |
protected List<NeuralNetConfiguration> confs
protected Map<Integer,InputPreProcessor> inputPreProcessors
protected boolean pretrain
protected boolean backprop
protected BackpropType backpropType
protected int tbpttFwdLength
protected int tbpttBackLength
protected WorkspaceMode trainingWorkspaceMode
protected WorkspaceMode inferenceWorkspaceMode
protected CacheMode cacheMode
protected int iterationCount
public String toYaml()
public static MultiLayerConfiguration fromYaml(String json)
json
- the neural net configuration from jsonMultiLayerConfiguration
public String toJson()
public static MultiLayerConfiguration fromJson(String json)
json
- the neural net configuration from jsonMultiLayerConfiguration
public NeuralNetConfiguration getConf(int i)
public MultiLayerConfiguration clone()
public InputPreProcessor getInputPreProcess(int curr)
public NetworkMemoryReport getMemoryReport(InputType inputType)
MemoryReport
for the given MultiLayerConfiguration. This is used to estimate the
memory requirements for the given network configuration and inputinputType
- Input types for the networkCopyright © 2017. All rights reserved.