<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/numpy_ops/np_math_ops.py#L414-L427) |

TensorFlow variant of NumPy's `heaviside`.

```python
tf.experimental.numpy.heaviside(
    x1, x2
)
```

Unsupported arguments: `out`, `where`, `casting`, `order`, `dtype`, `subok`, `signature`, `extobj`.

See the NumPy documentation for [`numpy.heaviside`](https://numpy.org/doc/stable/reference/generated/numpy.heaviside.html).