# tensorflow::ops::ResourceApplyPowerSign::Attrs Struct Reference

# tensorflow::
ops::
ResourceApplyPowerSign::
Attrs

`
#include <training_ops.h>
`


Optional attribute setters for
[ResourceApplyPowerSign](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/resource-apply-power-sign#classtensorflow_1_1ops_1_1_resource_apply_power_sign)
.

## Summary

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

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/resource-apply-power-sign/attrs#structtensorflow_1_1ops_1_1_resource_apply_power_sign_1_1_attrs_1ae7dd5c6fe55d9c8a890d35b04eda181d (bool x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/resource-apply-power-sign/attrs#structtensorflow_1_1ops_1_1_resource_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::ResourceApplyPowerSign::Attrs::use_locking_ = false
```

## Public functions

### UseLocking

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