public static class ResourceSparseApplyKerasMomentum.Options extends Object
ResourceSparseApplyKerasMomentum
Modifier and Type | Method and Description |
---|---|
ResourceSparseApplyKerasMomentum.Options |
useLocking(Boolean useLocking) |
ResourceSparseApplyKerasMomentum.Options |
useNesterov(Boolean useNesterov) |
public ResourceSparseApplyKerasMomentum.Options useLocking(Boolean useLocking)
useLocking
- If `True`, updating of the var and accum tensors will be protected
by a lock; otherwise the behavior is undefined, but may exhibit less
contention.public ResourceSparseApplyKerasMomentum.Options useNesterov(Boolean useNesterov)
useNesterov
- If `True`, the tensor passed to compute grad will be
var + momentum * accum, so in the end, the var you get is actually
var + momentum * accum.Copyright © 2022. All rights reserved.