public interface GradientUpdater<T extends IUpdater>
| Modifier and Type | Method and Description |
|---|---|
void |
applyUpdater(INDArray gradient,
int iteration,
int epoch)
Modify the gradient to be an update.
|
T |
getConfig() |
void |
setStateViewArray(INDArray viewArray,
int[] gradientShape,
char gradientOrder,
boolean initialize)
For the internal updater state (if any): set this to use the provided array.
|
T getConfig()
void setStateViewArray(INDArray viewArray, int[] gradientShape, char gradientOrder, boolean initialize)
viewArray - Array (that is a view of a larger array) to use for the state.gradientShape - gradientOrder - initialize - If true: the updater must initialize the view array. If false: no change to view array contentsvoid applyUpdater(INDArray gradient, int iteration, int epoch)
gradient - the gradient to modifyiteration - Copyright © 2018. All rights reserved.