tf.debugging.assert_proper_iterable

View source on GitHub

Static assert that values is a "proper" iterable.

Aliases:

tf.debugging.assert_proper_iterable(values)

Ops that expect iterables of Tensor can call this to validate input. Useful since Tensor, ndarray, byte/text type are all iterables themselves.

Args:

  • values: Object to be checked.

Raises: