# tensorflow::ops::ResourceApplyGradientDescent::Attrs Struct Reference

# tensorflow::ops::ResourceApplyGradientDescent::Attrs

`#include <training_ops.h>`

Optional attribute setters for [ResourceApplyGradientDescent](https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/resource-apply-gradient-descent#classtensorflow_1_1ops_1_1_resource_apply_gradient_descent).

## Summary

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

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

## Public functions

### UseLocking

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