Skip to content

Commit 592f301

Browse files
Unneeded field, exists in a baseclass (facebookresearch#3064)
Summary: Pull Request resolved: facebookresearch#3064 Reviewed By: pemazare Differential Revision: D49617455 Pulled By: mlomeli1 fbshipit-source-id: 2d35cfc3c2afc2536ac0d614b3dbe1401134d03f
1 parent 6218111 commit 592f301

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

faiss/impl/ScalarQuantizer.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,6 @@ template <class DCClass, int use_sel>
11751175
struct IVFSQScannerIP : InvertedListScanner {
11761176
DCClass dc;
11771177
bool by_residual;
1178-
const IDSelector* sel;
11791178

11801179
float accu0; /// added to all distances
11811180

@@ -1186,8 +1185,9 @@ struct IVFSQScannerIP : InvertedListScanner {
11861185
bool store_pairs,
11871186
const IDSelector* sel,
11881187
bool by_residual)
1189-
: dc(d, trained), by_residual(by_residual), sel(sel), accu0(0) {
1188+
: dc(d, trained), by_residual(by_residual), accu0(0) {
11901189
this->store_pairs = store_pairs;
1190+
this->sel = sel;
11911191
this->code_size = code_size;
11921192
}
11931193

@@ -1259,7 +1259,6 @@ struct IVFSQScannerL2 : InvertedListScanner {
12591259

12601260
bool by_residual;
12611261
const Index* quantizer;
1262-
const IDSelector* sel;
12631262
const float* x; /// current query
12641263

12651264
std::vector<float> tmp;
@@ -1275,10 +1274,10 @@ struct IVFSQScannerL2 : InvertedListScanner {
12751274
: dc(d, trained),
12761275
by_residual(by_residual),
12771276
quantizer(quantizer),
1278-
sel(sel),
12791277
x(nullptr),
12801278
tmp(d) {
12811279
this->store_pairs = store_pairs;
1280+
this->sel = sel;
12821281
this->code_size = code_size;
12831282
}
12841283

0 commit comments

Comments
 (0)