Skip to content

Commit

Permalink
Merge branch 'add-trimming-to-bbknn' into faster-trim
Browse files Browse the repository at this point in the history
  • Loading branch information
Intron7 authored Nov 4, 2024
2 parents 01b374b + 8486c2d commit b3b8b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_neighbors.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def test_trimming():
cnts_gpu = X_to_GPU(adata.obsp["connectivities"]).astype(np.float32)
cnts_cpu = adata.obsp["connectivities"].astype(np.float32)

cnts_cpu = trimming_cpu(cnts_gpu, 5)
cnts_gpu = trimming_gpu(cnts_cpu, 5)
cnts_cpu = trimming_cpu(cnts_cpu, 5)
cnts_gpu = trimming_gpu(cnts_gpu, 5)

cp.testing.assert_array_equal(cnts_cpu.data, cnts_gpu.data)
cp.testing.assert_array_equal(cnts_cpu.indices, cnts_gpu.indices)
Expand Down

0 comments on commit b3b8b5d

Please sign in to comment.