Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavz committed Dec 19, 2024
1 parent b7e73e1 commit e96237e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions faiss/utils/approx_topk_hamming/approx_topk_hamming.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ struct HeapWithBucketsForHamming32<
uint32_t hamming_distances[8];
uint8_t valid_counter = 0;
for (size_t j8 = 0; j8 < 8; j8++) {
const uint32_t idx =
const uint32_t idx =
j8 + j * 8 + ip + n_per_beam * beam_index;
if (!sel || sel->is_member(idx)) {
hamming_distances[j8] = hc.hamming(
Expand Down Expand Up @@ -172,7 +172,7 @@ struct HeapWithBucketsForHamming32<
const auto value = min_distances_scalar[j8];
const auto index = min_indices_scalar[j8];

if (value < std::numeric_limits<int32_t>::max() &&
if (value < std::numeric_limits<int32_t>::max() &&
C::cmp2(bh_val[0], value, bh_ids[0], index)) {
heap_replace_top<C>(
k, bh_val, bh_ids, value, index);
Expand Down
2 changes: 1 addition & 1 deletion faiss/utils/hamming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void hammings_knn_hc(
NB, \
BD, \
HammingComputer>:: \
addn(j1 - j0, hc, bs2_, k, bh_val_, bh_ids_, sel); \
addn(j1 - j0, hc, bs2_, k, bh_val_, bh_ids_, sel); \
break;

switch (approx_topk_mode) {
Expand Down

0 comments on commit e96237e

Please sign in to comment.