tf.nest.is_nested

Returns true if its input is a nested structure.

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

seq the value to test.

True if the input is a nested structure.