tf.debugging.is_numeric_tensor

Aliases:

  • tf.debugging.is_numeric_tensor
  • tf.is_numeric_tensor
tf.debugging.is_numeric_tensor(tensor)

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

Returns True if the elements of tensor are numbers.

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.