# tf.math.multiply

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/math/multiply) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/python/ops/math_ops.py#L328-L331) |

Returns x \* y element-wise.

#### View aliases


**Main aliases**

[`tf.multiply`](https://www.tensorflow.org/api_docs/python/tf/math/multiply)
**Compat aliases for migration**

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

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

<br />

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

> [!NOTE]
> **Note:** [`tf.multiply`](https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/math/multiply) supports broadcasting. More about broadcasting [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `uint8`, `int8`, `uint16`, `int16`, `int32`, `int64`, `complex64`, `complex128`. |
| `y` | A `Tensor`. Must have the same type as `x`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor`. Has the same type as `x`. ||

<br />