# tensorflow::ops::ResourceApplyProximalGradientDescent::Attrs Struct Reference

# tensorflow::
ops::
ResourceApplyProximalGradientDescent::
Attrs

`
#include <training_ops.h>
`


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

## Summary

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

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

## Public functions

### UseLocking

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