tf.assert_proper_iterable()

tf.assert_proper_iterable(values)

Static assert that values is a "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.

Args:
  • values: Object to be checked.
Raises:
  • TypeError: If values is not iterable or is one of Tensor, SparseTensor, np.array, tf.compat.bytes_or_text_types.
doc_TensorFlow
2016-10-14 12:42:46
Comments
Leave a Comment

Please login to continue.