Skip to content

Commit

Permalink
Changing digits
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnolet committed Oct 16, 2023
1 parent 4ca9c0d commit d90c09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/include/raft/distance/detail/distance_ops/l2_exp.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct l2_exp_cutlass_op {
// outVal could be negative due to numerical instability, especially when
// calculating self distance.
// clamp to 0 to avoid potential NaN in sqrt
outVal = outVal * (raft::abs(outVal) >= DataT(1e-12));
outVal = outVal * (raft::abs(outVal) >= DataT(1e-6));
return sqrt ? raft::sqrt(outVal) : outVal;
}

Expand Down

0 comments on commit d90c09e

Please sign in to comment.