View source on GitHub
|
Returns True if the elements of tensor are numbers.
tf.debugging.is_numeric_tensor(
tensor
)
Specifically, returns True if the dtype of tensor is one of the following:
tf.float32tf.float64tf.int8tf.int16tf.int32tf.int64tf.uint8tf.qint8tf.qint32tf.quint8tf.complex64
Returns False if tensor is of a non-numeric type or if tensor is not
a tf.Tensor object.
View source on GitHub