Google I/O returns May 18-20! Reserve space and build your schedule Register now

tf.nest.is_nested

TensorFlow 1 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.