TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.debugging.is_numeric_tensor

TensorFlow 1 version View source on GitHub

Returns True if the elements of tensor are numbers.

Aliases:

  • tf.compat.v1.debugging.is_numeric_tensor
  • tf.compat.v1.is_numeric_tensor
  • tf.compat.v2.debugging.is_numeric_tensor
tf.debugging.is_numeric_tensor(tensor)

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

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