Class ResourceApplyMomentum.Options
java.lang.Object
org.tensorflow.op.train.ResourceApplyMomentum.Options
- Enclosing class:
ResourceApplyMomentum
Optional attributes for
ResourceApplyMomentum-
Method Summary
Modifier and TypeMethodDescriptionuseLocking(Boolean useLocking) Sets the useLocking option.useNesterov(Boolean useNesterov) Sets the useNesterov option.
-
Method Details
-
useLocking
Sets the useLocking option.- Parameters:
useLocking- IfTrue, updating of the var and accum tensors will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.- Returns:
- this Options instance.
-
useNesterov
Sets the useNesterov option.- Parameters:
useNesterov- IfTrue, the tensor passed to compute grad will be var - lr * momentum * accum, so in the end, the var you get is actually var - lr * momentum * accum.- Returns:
- this Options instance.
-