W3cubDocs

/TensorFlow 2.3

tf.debugging.is_numeric_tensor

View source on GitHub

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.

© 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.3/api_docs/python/tf/debugging/is_numeric_tensor