Skip to content

Commit 5f7bfed

Browse files
authored
fix gpu return (#664)
1 parent 5ed1075 commit 5f7bfed

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

docs/release-notes/0.15.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
```{rubric} Misc
1717
```
18+
* Tidy `_check_gpu_X` return value on the canonicalizing branch {pr}`xxx` {smaller}`S Dicks`
1819
* ``adata.uns[key_added]["params"]["resolution"]`` is now stored as a scalar ``float`` when a single resolution
1920
is passed to ``tl.leiden`` and ``tl.louvain`` to match behaviour in Scanpy, and as a ``list`` when multiple
2021
resolutions are passed. Previously it was always stored as a list. {pr}`648`. {smaller}`J Pintar`

src/rapids_singlecell/preprocessing/_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ def _check_gpu_X(X, *, require_cf=False, allow_dask=False, allow_csc=True):
308308
else:
309309
X.sort_indices()
310310
X.sum_duplicates()
311+
return True
311312
else:
312313
raise TypeError(
313314
"The input is not a CuPy ndarray or CuPy sparse matrix. "

0 commit comments

Comments
 (0)