<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.15.1/tensorflow/python/ops/math_ops.py#L446-L478) |

Computes Python style division of `x` by `y`.

#### View aliases


**Main aliases**

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

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

[`tf.compat.v1.divide`](https://www.tensorflow.org/api_docs/python/tf/math/divide.md.txt)

<br />

```python
tf.math.divide(
    x, y, name=None
)
```

#### For example:

```python
x = tf.constant([16, 12, 11])
y = tf.constant([4, 6, 2])
tf.divide(x,y)
<tf.Tensor: shape=(3,), dtype=float64,
numpy=array([4. , 2. , 5.5])>
```

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | A `Tensor` |
| `y` | A `Tensor` |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` with same shape as input ||

<br />