mirror of
https://github.com/facebookresearch/faiss.git
synced 2026-10-12 02:13:36 +00:00
Set code_size on IVFRaBitQFastScanScanner (#5099)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/5099 As titled, add missing code_size. Unicorn needs code_size to be populated to pass some assertions used in code, e.g.: https://www.internalfb.com/code/fbsource/[b7f23f05067d]/fbcode/unicorn/features/encoders/IvfEncoder.cpp?lines=1516-1519 Reviewed By: alibeklfc Differential Revision: D100840815 fbshipit-source-id: 4f1b485b32d486414fedd75e1b657962f5ba6bcc
This commit is contained in:
committed by
meta-codesync[bot]
parent
b923091c0d
commit
2d8232c981
@@ -622,6 +622,7 @@ struct IVFRaBitQFastScanScanner : InvertedListScanner {
|
||||
qb(qb_in),
|
||||
centered(centered_in) {
|
||||
this->keep_max = is_similarity_metric(index_in.metric_type);
|
||||
this->code_size = index_in.code_size;
|
||||
}
|
||||
|
||||
void set_query(const float* query) override {
|
||||
|
||||
Reference in New Issue
Block a user