forked from facebookresearch/faiss
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HNSW speedup + Distance 4 points (facebookresearch#2841)
Summary: Pull Request resolved: facebookresearch#2841 * Add virtual void DistanceComputer::distances_to_four_indices() * Add the infrastructure * HNSW::search() uses DistanceComputer::distances_to_four_indices() * Add IndexFlatL2::sync_l2norms() and IndexFlatL2::clear_l2norms() that allow to precompute L2 cache for stored vectors and compute L2 distance using dot product * Add downcasting of IndexFlatL2 and IndexFlatIP in swig * Add general-purpose prefetch utilities Reviewed By: mdouze Differential Revision: D45427064 fbshipit-source-id: d23b34fe080dbff951d34cdc1323813bd3b828e0
- Loading branch information
1 parent
17a71e4
commit c86bc03
Showing
12 changed files
with
598 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.