dpnp.ndarray.nonzero

ndarray.nonzero()

Return the indices of the elements that are non-zero.

Refer to dpnp.nonzero for full documentation.