public class MultiLayerUpdater extends java.lang.Object implements Updater
Constructor and Description |
---|
MultiLayerUpdater(MultiLayerNetwork network) |
MultiLayerUpdater(MultiLayerNetwork network,
org.nd4j.linalg.api.ndarray.INDArray updaterState) |
Modifier and Type | Method and Description |
---|---|
Updater |
clone() |
boolean |
equals(java.lang.Object other) |
org.nd4j.linalg.api.ndarray.INDArray |
getStateViewArray() |
void |
setStateViewArray(Layer layer,
org.nd4j.linalg.api.ndarray.INDArray viewArray,
boolean initialize)
Set the internal (historical) state view array for this updater
|
int |
stateSizeForLayer(Layer layer)
Calculate and return the state size for this updater (for the given layer).
|
void |
update(Layer layer,
Gradient gradient,
int iteration,
int batchSize)
Updater: updates the model
|
public MultiLayerUpdater(MultiLayerNetwork network)
public MultiLayerUpdater(MultiLayerNetwork network, org.nd4j.linalg.api.ndarray.INDArray updaterState)
public void setStateViewArray(Layer layer, org.nd4j.linalg.api.ndarray.INDArray viewArray, boolean initialize)
Updater
setStateViewArray
in interface Updater
layer
- Layer that this updater belongs toviewArray
- View arrayinitialize
- Whether to initialize the array or notpublic org.nd4j.linalg.api.ndarray.INDArray getStateViewArray()
getStateViewArray
in interface Updater
public int stateSizeForLayer(Layer layer)
Updater
stateSizeForLayer
in interface Updater
layer
- Layer that this updater belongs topublic void update(Layer layer, Gradient gradient, int iteration, int batchSize)
Updater
public Updater clone()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object