public interface Updater
extends java.io.Serializable, java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
Updater |
clone() |
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 miniBatchSize)
Updater: updates the model
|
void setStateViewArray(Layer layer, org.nd4j.linalg.api.ndarray.INDArray viewArray, boolean initialize)
layer
- Layer that this updater belongs toviewArray
- View arrayinitialize
- Whether to initialize the array or notorg.nd4j.linalg.api.ndarray.INDArray getStateViewArray()
int stateSizeForLayer(Layer layer)
layer
- Layer that this updater belongs tovoid update(Layer layer, Gradient gradient, int iteration, int miniBatchSize)
layer
- gradient
- iteration
- Updater clone()