# tf.nest.is_nested

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/util/nest.py#L159-L172) |

Returns true if its input is a nested structure.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.nest.is_nested(
        seq
    )

Refer to [tf.nest](https://www.tensorflow.org/api_docs/python/tf/nest)
for the definition of a nested structure.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `seq` | the value to test. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| True if the input is a nested structure. ||

<br />