dpnp.ndarray.nonzero

ndarray.nonzero()

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