tf.debugging.assert_proper_iterable

Static assert that values is a "proper" iterable.

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.assert_proper_iterable, tf.compat.v1.debugging.assert_proper_iterable

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

values Object to be checked.

TypeError If values is not iterable or is one of Tensor, SparseTensor, np.array, tf.compat.bytes_or_text_types.