Skip to content

Commit a275439

Browse files
committed
Undo hack to test dask shape
1 parent fdbe8cf commit a275439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/array_api_extra/_lib/_funcs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ def nunique(x: Array, /, *, xp: ModuleType | None = None) -> Array:
552552
_, counts = xp.unique_counts(x)
553553
n = _compat.size(counts)
554554
# FIXME https://github.com/data-apis/array-api-compat/pull/231
555-
if n is None or math.isnan(n): # e.g. Dask, ndonnx
555+
if n is None: # e.g. Dask, ndonnx
556556
return xp.astype(counts, xp.bool).sum()
557557
return xp.asarray(n, device=_compat.device(x))
558558

0 commit comments

Comments
 (0)