Skip to content

Commit 6c5f456

Browse files
authored
fix dtype (#430)
1 parent a3aa1c7 commit 6c5f456

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/rapids_singlecell/decoupler_gpu/_helper

src/rapids_singlecell/decoupler_gpu/_helper/_pv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ def fdr_bh_axis1(ps):
3939
inv_order = cp.argsort(order, axis=1)
4040
ps_adj = cp.take_along_axis(ps_monotone, inv_order, axis=1)
4141

42-
return cp.clip(ps_adj, 0, 1).get()
42+
return cp.clip(ps_adj, 0, 1).get().astype(cp.float32)

0 commit comments

Comments
 (0)