# tensorflow::ops::ResourceScatterNdMax::Attrs

`#include <state_ops.h>`

Optional attribute setters for [ResourceScatterNdMax](https://www.tensorflow.org/versions/r2.12/api_docs/cc/class/tensorflow/ops/resource-scatter-nd-max#classtensorflow_1_1ops_1_1_resource_scatter_nd_max).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.12/api_docs/cc/struct/tensorflow/ops/resource-scatter-nd-max/attrs#structtensorflow_1_1ops_1_1_resource_scatter_nd_max_1_1_attrs_1abdfb6ef25fa70c756cada1373ad64f8b = true` | `bool` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.12/api_docs/cc/struct/tensorflow/ops/resource-scatter-nd-max/attrs#structtensorflow_1_1ops_1_1_resource_scatter_nd_max_1_1_attrs_1a397d95c49759fb517d4d77e334838fc6(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.12/api_docs/cc/struct/tensorflow/ops/resource-scatter-nd-max/attrs#structtensorflow_1_1ops_1_1_resource_scatter_nd_max_1_1_attrs` An optional bool. |

## Public attributes

### use_locking_

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

## Public functions

### UseLocking

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::ResourceScatterNdMax::Attrs::UseLocking(
  bool x
)
```
An optional bool.

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

Defaults to true