Join TensorFlow at Google I/O, May 11-12 Register now

tf.nest.is_nested

TensorFlow 2 version View source on GitHub

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

seq an input sequence.

True if the sequence is a not a string and is a collections.abc.Sequence or a dict.