Skip to content

Commit

Permalink
split off RQ encoding steps to another file (facebookresearch#3011)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebookresearch#3011

After Alexandr's optimizations the ResidualQuantizer code has become harder to read. Split off the quantization code to a separate .h / .cpp to make it clearer.

Differential Revision: D48448614

fbshipit-source-id: 9a067204915551d4aa99a4a77b4a976bab108349
  • Loading branch information
mdouze authored and facebook-github-bot committed Aug 28, 2023
1 parent 7be3620 commit 62b2f53
Show file tree
Hide file tree
Showing 6 changed files with 1,134 additions and 1,047 deletions.
2 changes: 2 additions & 0 deletions faiss/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ set(FAISS_SRC
impl/pq4_fast_scan.cpp
impl/pq4_fast_scan_search_1.cpp
impl/pq4_fast_scan_search_qbs.cpp
impl/residual_quantizer_encode_steps.cpp
impl/io.cpp
impl/lattice_Zn.cpp
impl/NNDescent.cpp
Expand Down Expand Up @@ -171,6 +172,7 @@ set(FAISS_HEADERS
impl/lattice_Zn.h
impl/platform_macros.h
impl/pq4_fast_scan.h
impl/residual_quantizer_encode_steps.h
impl/simd_result_handlers.h
impl/code_distance/code_distance.h
impl/code_distance/code_distance-generic.h
Expand Down
Loading

0 comments on commit 62b2f53

Please sign in to comment.