mirror of
https://github.com/facebookresearch/faiss.git
synced 2026-10-11 22:50:00 +00:00
Fix HNSW.fill_with_random_links. (#801)
This commit is contained in:
@@ -173,7 +173,7 @@ void HNSW::fill_with_random_links(size_t n)
|
||||
int max_level = prepare_level_tab(n);
|
||||
RandomGenerator rng2(456);
|
||||
|
||||
for (int level = max_level - 1; level >= 0; level++) {
|
||||
for (int level = max_level - 1; level >= 0; --level) {
|
||||
std::vector<int> elts;
|
||||
for (int i = 0; i < n; i++) {
|
||||
if (levels[i] > level) {
|
||||
|
||||
Reference in New Issue
Block a user