# tf.debugging.is_numeric_tensor

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/debugging/is_numeric_tensor) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/check_ops.py#L1872-L1896) |

Returns `True` if the elements of `tensor` are numbers.

#### View aliases


**Main aliases**

\`tf.is_numeric_tensor\`
**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.debugging.is_numeric_tensor`](https://www.tensorflow.org/api_docs/python/tf/debugging/is_numeric_tensor), [`tf.compat.v1.is_numeric_tensor`](https://www.tensorflow.org/api_docs/python/tf/debugging/is_numeric_tensor), \`tf.compat.v2.debugging.is_numeric_tensor\`

<br />

    tf.debugging.is_numeric_tensor(
        tensor
    )

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

- [`tf.float32`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf#float32)
- [`tf.float64`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf#float64)
- [`tf.int8`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf#int8)
- [`tf.int16`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf#int16)
- [`tf.int32`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf#int32)
- [`tf.int64`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf#int64)
- [`tf.uint8`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf#uint8)
- [`tf.qint8`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf#qint8)
- [`tf.qint32`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf#qint32)
- [`tf.quint8`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf#quint8)
- [`tf.complex64`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf#complex64)

Returns `False` if `tensor` is of a non-numeric type or if `tensor` is not
a [`tf.Tensor`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Tensor) object.