TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

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.