# tensorflow::ops::ApplyPowerSign::Attrs Struct Reference

# tensorflow::
ops::
ApplyPowerSign::
Attrs

`
#include <training_ops.h>
`


Optional attribute setters for
[ApplyPowerSign](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/apply-power-sign#classtensorflow_1_1ops_1_1_apply_power_sign)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/apply-power-sign/attrs#structtensorflow_1_1ops_1_1_apply_power_sign_1_1_attrs_1ac0532be3b22aee7b02a566f343c98e2f = false ` | ` bool ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/apply-power-sign/attrs#structtensorflow_1_1ops_1_1_apply_power_sign_1_1_attrs_1a58be8ab834a7a2b52c583915a0b277f1 (bool x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/apply-power-sign/attrs#structtensorflow_1_1ops_1_1_apply_power_sign_1_1_attrs ` If ` True ` , updating of the var and m tensors is protected by a lock; otherwise the behavior is undefined, but may exhibit less contention. |

## Public attributes

### use_locking_

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

## Public functions

### UseLocking

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

If
`
True
`
, updating of the var and m tensors is protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.


Defaults to false