# tf.nest.is_nested

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/nest/is_nested) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/python/util/nest.py#L217-L228) |

Returns true if its input is a collections.abc.Sequence (except strings).

#### 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
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `seq` | an input sequence. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| True if the sequence is a not a string and is a collections.abc.Sequence or a dict. ||

<br />