dpctl.tensor.unique_values¶
- dpctl.tensor.unique_values(x)[source]¶
Returns the unique elements of an input array x.
- Parameters:
x (usm_ndarray) – input array. Inputs with more than one dimension are flattened.
- Returns:
- usm_ndarray
an array containing the set of unique elements in x. The returned array has the same data type as x.