# tensorflow::ops::SparseApplyRMSProp::Attrs Struct Reference

# tensorflow::ops::SparseApplyRMSProp::Attrs

`#include <training_ops.h>`

Optional attribute setters for [SparseApplyRMSProp](https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/sparse-apply-r-m-s-prop#classtensorflow_1_1ops_1_1_sparse_apply_r_m_s_prop).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/sparse-apply-r-m-s-prop/attrs#structtensorflow_1_1ops_1_1_sparse_apply_r_m_s_prop_1_1_attrs_1a9c50586c265016bd074f3977377ffcc9 = false` | `bool` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/sparse-apply-r-m-s-prop/attrs#structtensorflow_1_1ops_1_1_sparse_apply_r_m_s_prop_1_1_attrs_1a7944eae5b2364f6ae886848693c6f561(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/sparse-apply-r-m-s-prop/attrs#structtensorflow_1_1ops_1_1_sparse_apply_r_m_s_prop_1_1_attrs` If `True`, updating of the var, ms, and mom tensors is protected by a lock; otherwise the behavior is undefined, but may exhibit less contention. |

## Public attributes

### use_locking_

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

## Public functions

### UseLocking

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::SparseApplyRMSProp::Attrs::UseLocking(
  bool x
)
```
If `True`, updating of the var, ms, and mom tensors is protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.

Defaults to false