# tensorflow::ops::ScatterMul::Attrs Struct Reference

# tensorflow::ops::ScatterMul::Attrs

`#include <state_ops.h>`

Optional attribute setters for [ScatterMul](https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/scatter-mul#classtensorflow_1_1ops_1_1_scatter_mul).

## Summary

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

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

## Public attributes

### use_locking_

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

## Public functions

### UseLocking

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

Defaults to false