Skip to content

Commit

Permalink
minor simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
cebtenzzre committed Oct 4, 2023
1 parent d9cb48f commit bde943e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ static bool is_float_eq(float a, float b, float abs_tol) {
}

// Regular comparison using the provided absolute tolerance
double diff = std::fabs(b - a);
return (diff <= abs_tol);
return std::fabs(b - a) <= abs_tol;
}

#ifdef GGML_USE_CPU_HBM
Expand Down

0 comments on commit bde943e

Please sign in to comment.