# tensorflow::ops::ResourceSparseApplyFtrl::Attrs

`#include <training_ops.h>`

Optional attribute setters for [ResourceSparseApplyFtrl](https://www.tensorflow.org/versions/r2.0/api_docs/cc/class/tensorflow/ops/resource-sparse-apply-ftrl#classtensorflow_1_1ops_1_1_resource_sparse_apply_ftrl).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/resource-sparse-apply-ftrl/attrs#structtensorflow_1_1ops_1_1_resource_sparse_apply_ftrl_1_1_attrs_1a7ad2314993fc3353a7eb6e3e3cf279f2 = false` | `bool` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/resource-sparse-apply-ftrl/attrs#structtensorflow_1_1ops_1_1_resource_sparse_apply_ftrl_1_1_attrs_1adba47820fbb9a489efa2dd341744ce6b(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/resource-sparse-apply-ftrl/attrs#structtensorflow_1_1ops_1_1_resource_sparse_apply_ftrl_1_1_attrs` If `True`, updating of the var and accum tensors will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention. |

## Public attributes

### use_locking_

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

## Public functions

### UseLocking

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

Defaults to false