# tensorflow::ops::PreventGradient::Attrs Struct Reference

# tensorflow::
ops::
PreventGradient::
Attrs

`
#include <array_ops.h>
`


Optional attribute setters for
[PreventGradient](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/prevent-gradient#classtensorflow_1_1ops_1_1_prevent_gradient)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/prevent-gradient/attrs#structtensorflow_1_1ops_1_1_prevent_gradient_1_1_attrs_1a85ca8381a662c1cca8aabfe5a0ebc560 = "" ` | ` StringPiece ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/prevent-gradient/attrs#structtensorflow_1_1ops_1_1_prevent_gradient_1_1_attrs_1a5fa5b963ff1b0088230db1ecc380bd41 (StringPiece x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/prevent-gradient/attrs#structtensorflow_1_1ops_1_1_prevent_gradient_1_1_attrs ` Will be printed in the error when anyone tries to differentiate this operation. |

## Public attributes

### message_

```
StringPiece tensorflow::ops::PreventGradient::Attrs::message_ = ""
```

## Public functions

### Message

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::PreventGradient::Attrs::Message(
  StringPiece x
)
```

Will be printed in the error when anyone tries to differentiate this operation.


Defaults to ""