Skip to content

Commit

Permalink
split off RQ encoding steps to another file (#3011)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #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: 10634971452b1c7e9c36f69a273c313b89b9d59d
  • Loading branch information
mdouze authored and facebook-github-bot committed Aug 30, 2023
1 parent 374fcd0 commit c1ed3ed
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 c1ed3ed

Please sign in to comment.