# tensorflow::ops::SparseApplyAdagradDA::Attrs Struct Reference

# tensorflow::ops::SparseApplyAdagradDA::Attrs

`#include <training_ops.h>`

Optional attribute setters for [SparseApplyAdagradDA](https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/sparse-apply-adagrad-d-a#classtensorflow_1_1ops_1_1_sparse_apply_adagrad_d_a).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.4/api_docs/cc/struct/tensorflow/ops/sparse-apply-adagrad-d-a/attrs#structtensorflow_1_1ops_1_1_sparse_apply_adagrad_d_a_1_1_attrs_1ad307c49fb877d3bd642827dd8268e292 = false` | `bool` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.4/api_docs/cc/struct/tensorflow/ops/sparse-apply-adagrad-d-a/attrs#structtensorflow_1_1ops_1_1_sparse_apply_adagrad_d_a_1_1_attrs_1a21018af208ca0000c35a1f97f11b00ff(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.4/api_docs/cc/struct/tensorflow/ops/sparse-apply-adagrad-d-a/attrs#structtensorflow_1_1ops_1_1_sparse_apply_adagrad_d_a_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::SparseApplyAdagradDA::Attrs::use_locking_ = false
```

## Public functions

### UseLocking

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