Return the indices of the elements that are non-zero.
Returns a tuple of arrays, one for each dimension of a, containing the indices of the non-zero elements in that dimension.
a (cupy.ndarray) – array
Indices of elements that are non-zero.
- Return type
tuple of arrays
This function may synchronize the device.