fix windows test (#2862)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2862 Fix windows test introduced by range search diff Reviewed By: algoriddle Differential Revision: D45901726 fbshipit-source-id: 16259b7718f1409adef814ea4c2b5707304849capull/2864/head
parent
615e3fca7f
commit
48d48a37ac
|
@ -701,7 +701,7 @@ class TestMapInt64ToInt64(unittest.TestCase):
|
|||
""" test that we are able to lookup """
|
||||
rs = np.random.RandomState(123)
|
||||
# make sure we have unique values
|
||||
keys = np.unique(rs.choice(2 ** 29, size=n))
|
||||
keys = np.unique(rs.choice(2 ** 29, size=n).astype("int64"))
|
||||
rs.shuffle(keys)
|
||||
n = keys.size
|
||||
vals = rs.choice(2 ** 30, size=n).astype('int64')
|
||||
|
|
Loading…
Reference in New Issue