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
10 changes: 1 addition & 9 deletions faiss/index_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,15 +531,7 @@ Index* parse_other_indexes(

// IndexLSH
if (match("LSH([0-9]*)(r?)(t?)")) {
int nbits;
if (sm[1].length() > 0) {
nbits = std::stoi(sm[1].str());
} else {
nbits = d;
fprintf(stderr,
"WARN: nbits not specified, defaulting to d = %d\n",
d);
}
int nbits = sm[1].length() > 0 ? std::stoi(sm[1].str()) : d;
bool rotate_data = sm[2].length() > 0;
bool train_thresholds = sm[3].length() > 0;
FAISS_THROW_IF_NOT(metric == METRIC_L2);
Expand Down