# tensorflow::ops::ResourceSparseApplyProximalGradientDescent::Attrs

`#include <training_ops.h>`

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

## Summary

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

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/resource-sparse-apply-proximal-gradient-descent/attrs#structtensorflow_1_1ops_1_1_resource_sparse_apply_proximal_gradient_descent_1_1_attrs_1aef913531b93329777337d17a7a4f122c(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/resource-sparse-apply-proximal-gradient-descent/attrs#structtensorflow_1_1ops_1_1_resource_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::ResourceSparseApplyProximalGradientDescent::Attrs::use_locking_ = false
```

## Public functions

### UseLocking

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