# tensorflow::ops::ScatterUpdate::Attrs Struct Reference

# tensorflow::
ops::
ScatterUpdate::
Attrs

`
#include <state_ops.h>
`


Optional attribute setters for
[ScatterUpdate](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/scatter-update#classtensorflow_1_1ops_1_1_scatter_update)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/scatter-update/attrs#structtensorflow_1_1ops_1_1_scatter_update_1_1_attrs_1ae8abc728e4ef2bb67e3c08a6f30564ee = true ` | ` bool ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/scatter-update/attrs#structtensorflow_1_1ops_1_1_scatter_update_1_1_attrs_1a3854967f64055e6443ac3788db8b065e (bool x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/scatter-update/attrs#structtensorflow_1_1ops_1_1_scatter_update_1_1_attrs ` If True, the assignment will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention. |

## Public attributes

### use_locking_

```
bool tensorflow::ops::ScatterUpdate::Attrs::use_locking_ = true
```

## Public functions

### UseLocking

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::ScatterUpdate::Attrs::UseLocking(
  bool x
)
```

If True, the assignment will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.


Defaults to true