Skip to content

Commit

Permalink
use the wrapped function, and check for success
Browse files Browse the repository at this point in the history
  • Loading branch information
mberr committed Feb 7, 2024
1 parent 9949725 commit 45e5c15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,5 @@ def test_large():

x = torch.rand(100000, 100, device="mps")
y = torch.rand(200000, 100, device="mps")
z = knn(x, y, batch_size=x.shape[0])
assert z
_result, (batch_size,) = wrapped_knn(x, y, batch_size=x.shape[0])
assert batch_size > 0

0 comments on commit 45e5c15

Please sign in to comment.