Skip to content

Commit ff4c32a

Browse files
committed
Fix dpnp.unique with axis=0 and 1d input
1 parent fed6925 commit ff4c32a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/dpnp_iface_manipulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4245,7 +4245,7 @@ def unique(
42454245
42464246
"""
42474247

4248-
if axis is None:
4248+
if axis is None or (axis == 0 and ar.ndim == 1):
42494249
return _unique_1d(
42504250
ar, return_index, return_inverse, return_counts, equal_nan
42514251
)

0 commit comments

Comments
 (0)