Revert number of cores in search
This commit is contained in:
parent
e686d240ee
commit
95316a5b3b
@ -37,7 +37,7 @@ class FLANNIndex(object):
|
||||
elif isinstance(query, T.Tensor):
|
||||
query = query.cpu().numpy()
|
||||
|
||||
l, d = self.index.nn_index(query, num_neighbors=self.K if k is None else k, cores=4)
|
||||
l, d = self.index.nn_index(query, num_neighbors=self.K if k is None else k)
|
||||
|
||||
distances = T.from_numpy(d).float()
|
||||
labels = T.from_numpy(l).long()
|
||||
|
Loading…
Reference in New Issue
Block a user