# tensorflow::ops::AssignSub::Attrs Struct Reference

# tensorflow::
ops::
AssignSub::
Attrs

`
#include <state_ops.h>
`


Optional attribute setters for
[AssignSub](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/assign-sub#classtensorflow_1_1ops_1_1_assign_sub)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/assign-sub/attrs#structtensorflow_1_1ops_1_1_assign_sub_1_1_attrs_1a068c18dac41761ef89b0d8fb8f2f1a1d = false ` | ` bool ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/assign-sub/attrs#structtensorflow_1_1ops_1_1_assign_sub_1_1_attrs_1a27ff32b098debf0064284de627eac2b4 (bool x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/assign-sub/attrs#structtensorflow_1_1ops_1_1_assign_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::AssignSub::Attrs::use_locking_ = false
```

## Public functions

### UseLocking

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::AssignSub::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