tf.debugging.is_numeric_tensor

View source on GitHub

Returns True if the elements of tensor are numbers.

Aliases:

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.