# tensorflow::ops::ApplyGradientDescent::Attrs

`#include <training_ops.h>`

Optional attribute setters for [ApplyGradientDescent](https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/apply-gradient-descent#classtensorflow_1_1ops_1_1_apply_gradient_descent).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/apply-gradient-descent/attrs#structtensorflow_1_1ops_1_1_apply_gradient_descent_1_1_attrs_1a9fec359d3ca4c779f95c4a9875578e46 = false` | `bool` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/apply-gradient-descent/attrs#structtensorflow_1_1ops_1_1_apply_gradient_descent_1_1_attrs_1a6512e34bb0f3f8579890e101a01e3838(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/apply-gradient-descent/attrs#structtensorflow_1_1ops_1_1_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::ApplyGradientDescent::Attrs::use_locking_ = false
```

## Public functions

### UseLocking

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