# tf.AttrValue

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/core/framework/attr_value.proto) |

A ProtocolMessage

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.AttrValue`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/AttrValue)

<br />

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `b` | `bool b` |
| `f` | `float f` |
| `func` | `NameAttrList func` |
| `i` | `int64 i` |
| `list` | `ListValue list` |
| `placeholder` | `string placeholder` |
| `s` | `bytes s` |
| `shape` | `TensorShapeProto shape` |
| `tensor` | `TensorProto tensor` |
| `type` | `DataType type` |

<br />

## Child Classes

[`class ListValue`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/AttrValue/ListValue)