Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions faiss/impl/ProductQuantizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ void ProductQuantizer::set_derived_values() {
"The dimension of the vector (d) should be a multiple of the number of subquantizers (M)");
dsub = d / M;
code_size = (nbits * M + 7) / 8;
FAISS_THROW_IF_MSG(nbits > 24, "nbits larger than 24 is not practical.");
ksub = 1 << nbits;
centroids.resize(d * ksub);
verbose = false;
Expand Down