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.