# tensorflow::ops::ResourceSparseApplyProximalAdagrad::Attrs Struct Reference

# tensorflow::ops::ResourceSparseApplyProximalAdagrad::Attrs

`#include <training_ops.h>`

Optional attribute setters for [ResourceSparseApplyProximalAdagrad](https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/resource-sparse-apply-proximal-adagrad#classtensorflow_1_1ops_1_1_resource_sparse_apply_proximal_adagrad).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/resource-sparse-apply-proximal-adagrad/attrs#structtensorflow_1_1ops_1_1_resource_sparse_apply_proximal_adagrad_1_1_attrs_1af5cc6b91830a05496963103bdbb740a3 = false` | `bool` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/resource-sparse-apply-proximal-adagrad/attrs#structtensorflow_1_1ops_1_1_resource_sparse_apply_proximal_adagrad_1_1_attrs_1ae76775d1c54dca1cb0aabb5effccc716(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/resource-sparse-apply-proximal-adagrad/attrs#structtensorflow_1_1ops_1_1_resource_sparse_apply_proximal_adagrad_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::ResourceSparseApplyProximalAdagrad::Attrs::use_locking_ = false
```

## Public functions

### UseLocking

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