<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.21.0/tensorflow/python/ops/numpy_ops/np_array_ops.py#L1064-L1074) |

TensorFlow variant of NumPy's `where`.

    tf.experimental.numpy.where(
        condition, x=None, y=None
    )

Raises ValueError if exactly one of x or y is not None.

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