# tensorflow::ops::ScatterMax::Attrs Struct Reference

# tensorflow::
ops::
ScatterMax::
Attrs

`
#include <state_ops.h>
`


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

## Summary

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

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

## Public attributes

### use_locking_

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

## Public functions

### UseLocking

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

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


Defaults to false