dpnp.unique_values
- dpnp.unique_values(x, /)
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:
out -- The unique elements of an input array.
- Return type:
dpnp.ndarray
See also
dpnp.unique
Find the unique elements of an array.
Examples
>>> import dpnp as np >>> np.unique_values(np.array([1, 1, 2])) array([1, 2])