ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

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.