Spec-Zone.ru › TensorFlow 2.4

tf.debugging.is_numeric_tensor

View source on GitHub

Returns True if the elements of tensor are numbers.

View aliases

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.debugging.is_numeric_tensor, tf.compat.v1.is_numeric_tensor

tf.debugging.is_numeric_tensor(
    tensor
)

Specifically, returns True if the dtype of tensor is one of the following:

  • tf.float32
  • tf.float64
  • tf.int8
  • tf.int16
  • tf.int32
  • tf.int64
  • tf.uint8
  • tf.qint8
  • tf.qint32
  • tf.quint8
  • tf.complex64

Returns False if tensor is of a non-numeric type or if tensor is not a tf.Tensor object.

© 2020 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/versions/r2.4/api_docs/python/tf/debugging/is_numeric_tensor

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API