diff options
Diffstat (limited to 'numpy/_array_api/_set_functions.py')
-rw-r--r-- | numpy/_array_api/_set_functions.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/_array_api/_set_functions.py b/numpy/_array_api/_set_functions.py index b6198765a..7603b6b30 100644 --- a/numpy/_array_api/_set_functions.py +++ b/numpy/_array_api/_set_functions.py @@ -1,3 +1,4 @@ +import numpy as np + def unique(x, /, *, return_counts=False, return_index=False, return_inverse=False, sorted=True): - from .. import unique - return unique(x, return_counts=return_counts, return_index=return_index, return_inverse=return_inverse, sorted=sorted) + return np.unique(x, return_counts=return_counts, return_index=return_index, return_inverse=return_inverse, sorted=sorted) |