From bde943e6d6570b7b02d5ddd7a89dd73eaa25151f Mon Sep 17 00:00:00 2001 From: Cebtenzzre Date: Wed, 4 Oct 2023 11:13:02 -0400 Subject: [PATCH] minor simplification --- llama.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llama.cpp b/llama.cpp index 135b040dc..b8093da85 100644 --- a/llama.cpp +++ b/llama.cpp @@ -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