ResourceSparseApplyMomentum.Options

public static class ResourceSparseApplyMomentum.Options

Optional attributes for ResourceSparseApplyMomentum

Public Methods

ResourceSparseApplyMomentum.Options
useLocking (Boolean useLocking)
ResourceSparseApplyMomentum.Options
useNesterov (Boolean useNesterov)

Inherited Methods

Public Methods

public ResourceSparseApplyMomentum.Options useLocking (Boolean useLocking)

Parameters
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 ResourceSparseApplyMomentum.Options useNesterov (Boolean useNesterov)

Parameters
useNesterov If `True`, 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.