Skip to content

Commit

Permalink
Daily arc lint --take CLANGFORMAT
Browse files Browse the repository at this point in the history
Reviewed By: jhpowell

Differential Revision: D45908420

fbshipit-source-id: 84dfedc4af9dea3887e27e79b53414afd0c1790d
  • Loading branch information
generatedunixname89002005325676 authored and facebook-github-bot committed May 16, 2023
1 parent b9ea339 commit 615e3fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion faiss/utils/partitioning.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,4 @@ struct PartitionStats {
// global var that collects them all
FAISS_API extern PartitionStats partition_stats;


} // namespace faiss
3 changes: 1 addition & 2 deletions faiss/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,7 @@ void CombinerRangeKNN::compute_sizes(int64_t* L_res) {
int64_t n_in;
if (!mask || !mask[i]) {
const float* row = D + i * k;
n_in = keep_max ? count_gt(k, row, r2)
: count_lt(k, row, r2);
n_in = keep_max ? count_gt(k, row, r2) : count_lt(k, row, r2);
} else {
n_in = lim_remain[j + 1] - lim_remain[j];
j++;
Expand Down

0 comments on commit 615e3fc

Please sign in to comment.