Skip to content

Commit

Permalink
Fix is_trained in IndexNSGSQ (facebookresearch#3145)
Browse files Browse the repository at this point in the history
Summary:
Same as facebookresearch#3034

When using IndexNSGSQ with fp16, do not require training

Pull Request resolved: facebookresearch#3145

Reviewed By: algoriddle

Differential Revision: D51615536

Pulled By: mdouze

fbshipit-source-id: c6bfbca920be80231d5d0a7290a29f17ea271f6e
  • Loading branch information
luyuncheng authored and facebook-github-bot committed Nov 28, 2023
1 parent d643c41 commit eb071f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faiss/IndexNSG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ IndexNSGSQ::IndexNSGSQ(
int M,
MetricType metric)
: IndexNSG(new IndexScalarQuantizer(d, qtype, metric), M) {
is_trained = false;
is_trained = this->storage->is_trained;
own_fields = true;
}

Expand Down

0 comments on commit eb071f8

Please sign in to comment.