Skip to content

Commit

Permalink
Unneeded field, exists in a baseclass (#3064)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #3064

Reviewed By: pemazare

Differential Revision: D49617455

Pulled By: mlomeli1

fbshipit-source-id: 2d35cfc3c2afc2536ac0d614b3dbe1401134d03f
  • Loading branch information
alexanderguzhva authored and facebook-github-bot committed Sep 27, 2023
1 parent 6218111 commit 592f301
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions faiss/impl/ScalarQuantizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,6 @@ template <class DCClass, int use_sel>
struct IVFSQScannerIP : InvertedListScanner {
DCClass dc;
bool by_residual;
const IDSelector* sel;

float accu0; /// added to all distances

Expand All @@ -1186,8 +1185,9 @@ struct IVFSQScannerIP : InvertedListScanner {
bool store_pairs,
const IDSelector* sel,
bool by_residual)
: dc(d, trained), by_residual(by_residual), sel(sel), accu0(0) {
: dc(d, trained), by_residual(by_residual), accu0(0) {
this->store_pairs = store_pairs;
this->sel = sel;
this->code_size = code_size;
}

Expand Down Expand Up @@ -1259,7 +1259,6 @@ struct IVFSQScannerL2 : InvertedListScanner {

bool by_residual;
const Index* quantizer;
const IDSelector* sel;
const float* x; /// current query

std::vector<float> tmp;
Expand All @@ -1275,10 +1274,10 @@ struct IVFSQScannerL2 : InvertedListScanner {
: dc(d, trained),
by_residual(by_residual),
quantizer(quantizer),
sel(sel),
x(nullptr),
tmp(d) {
this->store_pairs = store_pairs;
this->sel = sel;
this->code_size = code_size;
}

Expand Down

0 comments on commit 592f301

Please sign in to comment.