Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aamijar committed Jun 17, 2024
1 parent 7b0e44b commit 4b64c37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/include/raft/distance/detail/distance_ops/dice.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct dice_cutlass_op {
*
* It computes the following equation:
*
* d(x, y) = 1 - 2*(x ⋅ y) / ( ||x||_1 + ||y||_1 )
* d(x, y) = 1 - 2*(x ⋅ y) / ( Σ(x) + Σ(y) )
*/
template <typename DataType, typename AccType, typename IdxType>
struct dice_distance_op {
Expand Down
2 changes: 1 addition & 1 deletion cpp/test/distance/distance_base.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ RAFT_KERNEL naiveDiceDistanceKernel(

int outidx = isRowMajor ? midx * n + nidx : midx + m * nidx;

// Use 1.0 - (dice similarity) to calc the distance
// Use 1.0 - (dice dissimilarity) to calc the distance
dist[outidx] = (DataType)1.0 - (2 * acc_ab / ((acc_a) + (acc_b)));
}

Expand Down

0 comments on commit 4b64c37

Please sign in to comment.