# tensorflow::ops::SparseApplyProximalGradientDescent::Attrs Struct Reference

# tensorflow::
ops::
SparseApplyProximalGradientDescent::
Attrs

`
#include <training_ops.h>
`


Optional attribute setters for
[SparseApplyProximalGradientDescent](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/sparse-apply-proximal-gradient-descent#classtensorflow_1_1ops_1_1_sparse_apply_proximal_gradient_descent)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/sparse-apply-proximal-gradient-descent/attrs#structtensorflow_1_1ops_1_1_sparse_apply_proximal_gradient_descent_1_1_attrs_1a6542259402e01d96097e6c4c1298c1ef = false ` | ` bool ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/sparse-apply-proximal-gradient-descent/attrs#structtensorflow_1_1ops_1_1_sparse_apply_proximal_gradient_descent_1_1_attrs_1a38a235c3d769285aee3b7a0c939df684 (bool x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/sparse-apply-proximal-gradient-descent/attrs#structtensorflow_1_1ops_1_1_sparse_apply_proximal_gradient_descent_1_1_attrs ` If True, the subtraction will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention. |

## Public attributes

### use_locking_

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

## Public functions

### UseLocking

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

If True, the subtraction will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.


Defaults to false