minor simplification

This commit is contained in:
Cebtenzzre 2023-10-04 11:13:02 -04:00
parent d9cb48f063
commit bde943e6d6

View file

@ -141,8 +141,7 @@ static bool is_float_eq(float a, float b, float abs_tol) {
} }
// Regular comparison using the provided absolute tolerance // Regular comparison using the provided absolute tolerance
double diff = std::fabs(b - a); return std::fabs(b - a) <= abs_tol;
return (diff <= abs_tol);
} }
#ifdef GGML_USE_CPU_HBM #ifdef GGML_USE_CPU_HBM