dpnp.unique_values¶
- dpnp.unique_values(x, /)[source]¶
Returns the unique elements of an input array x.
For full documentation refer to
numpy.unique_values.- Parameters:
- x{dpnp.ndarray, usm_ndarray}
Input array. It will be flattened if it is not already 1-D.
- Returns:
- outdpnp.ndarray
The unique elements of an input array.
See also
dpnp.uniqueFind the unique elements of an array.
Examples
>>> import dpnp as np >>> np.unique_values(np.array([1, 1, 2])) array([1, 2])