public class NesterovsUpdater extends Object implements GradientUpdater<Nesterovs>
Constructor and Description |
---|
NesterovsUpdater(Nesterovs config) |
Modifier and Type | Method and Description |
---|---|
void |
applyUpdater(INDArray gradient,
int iteration,
int epoch)
Get the nesterov update
|
void |
setStateViewArray(INDArray viewArray,
int[] gradientShape,
char gradientOrder,
boolean initialize)
For the internal updater state (if any): set this to use the provided array.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfig
public NesterovsUpdater(Nesterovs config)
public void setStateViewArray(INDArray viewArray, int[] gradientShape, char gradientOrder, boolean initialize)
GradientUpdater
setStateViewArray
in interface GradientUpdater<Nesterovs>
viewArray
- Array (that is a view of a larger array) to use for the state.initialize
- If true: the updater must initialize the view array. If false: no change to view array contentspublic void applyUpdater(INDArray gradient, int iteration, int epoch)
applyUpdater
in interface GradientUpdater<Nesterovs>
gradient
- the gradient to get the update foriteration
- Copyright © 2018. All rights reserved.