# tensorflow::ops::SparseApplyFtrl::Attrs

`#include <training_ops.h>`

Optional attribute setters for [SparseApplyFtrl](https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/sparse-apply-ftrl#classtensorflow_1_1ops_1_1_sparse_apply_ftrl).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/sparse-apply-ftrl/attrs#structtensorflow_1_1ops_1_1_sparse_apply_ftrl_1_1_attrs_1af07d24dc4d04d09a22316ff156f23a67 = false` | `bool` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/sparse-apply-ftrl/attrs#structtensorflow_1_1ops_1_1_sparse_apply_ftrl_1_1_attrs_1aac0de93b764d419e084c136984829248(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/sparse-apply-ftrl/attrs#structtensorflow_1_1ops_1_1_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::SparseApplyFtrl::Attrs::use_locking_ = false
```

## Public functions

### UseLocking

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