# ResourceSparseApplyKerasMomentum.Options

public static class **ResourceSparseApplyKerasMomentum.Options** Optional attributes for `https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ResourceSparseApplyKerasMomentum`

### Public Methods

|---|---|
| [ResourceSparseApplyKerasMomentum.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ResourceSparseApplyKerasMomentum.Options) | [useLocking](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ResourceSparseApplyKerasMomentum.Options#useLocking(java.lang.Boolean))(Boolean useLocking) |
| [ResourceSparseApplyKerasMomentum.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ResourceSparseApplyKerasMomentum.Options) | [useNesterov](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ResourceSparseApplyKerasMomentum.Options#useNesterov(java.lang.Boolean))(Boolean useNesterov) |

### Inherited Methods

From class java.lang.Object

|---|---|
| boolean | equals(Object arg0) |
| final Class\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| String | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public [ResourceSparseApplyKerasMomentum.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ResourceSparseApplyKerasMomentum.Options)
**useLocking**
(Boolean useLocking)

<br />

##### 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 [ResourceSparseApplyKerasMomentum.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ResourceSparseApplyKerasMomentum.Options)
**useNesterov**
(Boolean useNesterov)

<br />

##### Parameters

| 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. |
|---|---|