From 0aae4d3eeca16d0d9a31bf755b7657458740075b Mon Sep 17 00:00:00 2001 From: youcheng huang <690394136@qq.com> Date: Tue, 1 Aug 2023 05:01:30 -0700 Subject: [PATCH] fix hnsw shrink_neighbor_list comment (#2980) Summary: This pr is to fix the issue https://github.com/facebookresearch/faiss/issues/2978 . Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2980 Reviewed By: mdouze Differential Revision: D47950592 Pulled By: mlomeli1 fbshipit-source-id: 32ef06c3775f7234a5a4bb4dab36c176edea2d1f --- faiss/impl/HNSW.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faiss/impl/HNSW.cpp b/faiss/impl/HNSW.cpp index 24455fa877..9fc201ea39 100644 --- a/faiss/impl/HNSW.cpp +++ b/faiss/impl/HNSW.cpp @@ -222,7 +222,7 @@ int HNSW::prepare_level_tab(size_t n, bool preset_levels) { return max_level; } -/** Enumerate vertices from farthest to nearest from query, keep a +/** Enumerate vertices from nearest to farthest from query, keep a * neighbor only if there is no previous neighbor that is closer to * that vertex than the query. */