tf.nest.is_nested

Returns true if its input is a nested structure.

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.nest.is_nested

Refer to tf.nest for the definition of a nested structure.

seq the value to test.

True if the input is a nested structure.