# tensorflow::ops::SparseApplyCenteredRMSProp::Attrs Struct Reference

# tensorflow::
ops::
SparseApplyCenteredRMSProp::
Attrs

`
#include <training_ops.h>
`


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

## Summary

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

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/sparse-apply-centered-r-m-s-prop/attrs#structtensorflow_1_1ops_1_1_sparse_apply_centered_r_m_s_prop_1_1_attrs_1aaa9a314e53bf7f8e8ef7514fd7e84192 (bool x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/sparse-apply-centered-r-m-s-prop/attrs#structtensorflow_1_1ops_1_1_sparse_apply_centered_r_m_s_prop_1_1_attrs ` If ` True ` , updating of the var, mg, 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::SparseApplyCenteredRMSProp::Attrs::use_locking_ = false
```

## Public functions

### UseLocking

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

If
`
True
`
, updating of the var, mg, ms, and mom tensors is protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.


Defaults to false