# tensorflow::ops::ScatterSub::Attrs

`#include <state_ops.h>`

Optional attribute setters for [ScatterSub](https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/scatter-sub#classtensorflow_1_1ops_1_1_scatter_sub).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/scatter-sub/attrs#structtensorflow_1_1ops_1_1_scatter_sub_1_1_attrs_1aa15343b752ff389fbf16dae358abe738 = false` | `bool` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/scatter-sub/attrs#structtensorflow_1_1ops_1_1_scatter_sub_1_1_attrs_1ae8f41f0f43034b4ef3eead8c8bea1d95(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/scatter-sub/attrs#structtensorflow_1_1ops_1_1_scatter_sub_1_1_attrs` If True, the subtraction will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention. |

## Public attributes

### use_locking_

```
bool tensorflow::ops::ScatterSub::Attrs::use_locking_ = false
```

## Public functions

### UseLocking

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::ScatterSub::Attrs::UseLocking(
  bool x
)
```
If True, the subtraction will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.

Defaults to false