Skip to content

Commit

Permalink
fix windows test
Browse files Browse the repository at this point in the history
Differential Revision: D44210010

fbshipit-source-id: 22a67dff596fbc468c42fe261cfe77ebc80de7aa
  • Loading branch information
mdouze authored and facebook-github-bot committed Mar 20, 2023
1 parent 2d7dd5b commit ee10f6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_contrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,8 @@ def test_checkpoint(self):
index.nprobe = 5
Dref, Iref = index.search(ds.get_queries(), k)

checkpoint = "/tmp/test_big_batch_checkpoint.%d" % np.random.randint(int(1e16))
r = np.random.randint(1 << 30) << 30 | np.random.randint(1 << 30)
checkpoint = "/tmp/test_big_batch_checkpoint.%d" % r
try:
# First big batch search
try:
Expand Down

0 comments on commit ee10f6f

Please sign in to comment.