# tf.math.multiply_no_nan

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/math/multiply_no_nan) | [![](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/math_ops.py#L1121-L1143) |

Computes the product of x and y and returns 0 if the y is zero, even if x is NaN or infinite.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.math.multiply_no_nan(
        x, y, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | A `Tensor`. Must be one of the following types: `float32`, `float64`. |
| `y` | A `Tensor` whose dtype is compatible with `x`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The element-wise value of the x times y. ||

<br />