tf.assert_proper_iterable

tf.assert_proper_iterable

tf.assert_proper_iterable

assert_proper_iterable(values)

Defined in tensorflow/python/ops/check_ops.py.

See the guide: Asserts and boolean checks

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.

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/assert_proper_iterable

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部