# tensorflow::ops::TemporaryVariable::Attrs Struct Reference

# tensorflow::
ops::
TemporaryVariable::
Attrs

`
#include <state_ops.h>
`


Optional attribute setters for
[TemporaryVariable](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/temporary-variable#classtensorflow_1_1ops_1_1_temporary_variable)
.

## Summary

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

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/temporary-variable/attrs#structtensorflow_1_1ops_1_1_temporary_variable_1_1_attrs_1ac88edaa4690953d0fa26f874e536a4a3 (StringPiece x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/temporary-variable/attrs#structtensorflow_1_1ops_1_1_temporary_variable_1_1_attrs ` Overrides the name used for the temporary variable resource. |

## Public attributes

### var_name_

```
StringPiece tensorflow::ops::TemporaryVariable::Attrs::var_name_ = ""
```

## Public functions

### VarName

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::TemporaryVariable::Attrs::VarName(
  StringPiece x
)
```

Overrides the name used for the temporary variable resource.


Default value is the name of the '
[TemporaryVariable](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/temporary-variable#classtensorflow_1_1ops_1_1_temporary_variable)
' op (which is guaranteed unique).


Defaults to ""