Skip to content

Commit

Permalink
Update code comment to reflect the range of IF from [1, k] (#4139)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #4139

Reviewed By: junjieqi

Differential Revision: D68630805

fbshipit-source-id: ff2446e8179cefcf588b58673239ef8549d9fd1d
  • Loading branch information
Amir Sadoughi authored and facebook-github-bot committed Jan 24, 2025
1 parent 3f3d18d commit dc8d29a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion faiss/utils/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ size_t merge_result_table_with(
bool keep_min = true,
int64_t translation = 0);

/// a balanced assignment has a IF of 1
/// a balanced assignment has a IF of 1, a completely unbalanced assignment has
/// an IF = k.
double imbalance_factor(int n, int k, const int64_t* assign);

/// same, takes a histogram as input
Expand Down

0 comments on commit dc8d29a

Please sign in to comment.