Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NegativeDistanceComputer::distances_batch_4 override (#3149)
Summary: Pull Request resolved: #3149 Enables vectorized distance calculation in [NegativeDistanceComputer](https://github.com/facebookresearch/faiss/blob/b109d086a2a200b1697481dd3d79faedc585a623/faiss/IndexHNSW.cpp#L74), whenever supported by the [NegativeDistanceComputer::basedis](https://github.com/facebookresearch/faiss/blob/b109d086a2a200b1697481dd3d79faedc585a623/faiss/IndexHNSW.cpp#L76). Otherwise the default sequential calculation of [DistanceComputer::distances_batch_4](https://github.com/facebookresearch/faiss/blob/b109d086a2a200b1697481dd3d79faedc585a623/faiss/impl/DistanceComputer.h#L36-L54) is always chosen. Reviewed By: algoriddle Differential Revision: D51596177 fbshipit-source-id: fee510c0a229991ecb7d81a51bc53a20880685be
- Loading branch information