Registration is open for TensorFlow Dev Summit 2020 Learn more

tf.contrib.framework.nest.is_sequence

View source on GitHub

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

tf.contrib.framework.nest.is_sequence(o)

Args:

  • seq: an input sequence.

Returns:

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