Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: facebookresearch/faiss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c0623d38934ba8d4d361dbcdea0d2712549181d8
Choose a base ref
..
head repository: facebookresearch/faiss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7693e3818ad1ef8c1f4d0231af7ddce6d4a311e5
Choose a head ref
Showing with 3 additions and 2 deletions.
  1. +2 −2 faiss/MetricType.h
  2. +1 −0 faiss/utils/hamming_distance/generic-inl.h
4 changes: 2 additions & 2 deletions faiss/MetricType.h
Original file line number Diff line number Diff line change
@@ -34,8 +34,8 @@ enum MetricType {
METRIC_Jaccard, ///< defined as: sum_i(min(a_i, b_i)) / sum_i(max(a_i, b_i))
///< where a_i, b_i > 0
METRIC_NaNEuclidean,
METRIC_ABS_INNER_PRODUCT, /// abs(x | y), encodes the distance to a
/// hyperplane
METRIC_ABS_INNER_PRODUCT /// abs(x | y), encodes the distance to a
/// hyperplane
};

/// all vector indices are this type
1 change: 1 addition & 0 deletions faiss/utils/hamming_distance/generic-inl.h
Original file line number Diff line number Diff line change
@@ -309,6 +309,7 @@ struct HammingComputerDefault {
const uint8_t* a = a8 + 8 * quotient8;
const uint8_t* b = b8 + 8 * quotient8;
switch (remainder8) {
[[fallthrough]];
case 7:
accu += hamdis_tab_ham_bytes[a[6] ^ b[6]];
[[fallthrough]];