Fix minor logic flaw

This commit is contained in:
Ed Addario 2025-09-22 20:10:42 +01:00
parent 1fbc59f867
commit f184450806
No known key found for this signature in database
GPG Key ID: E7875815A3230993
1 changed files with 1 additions and 1 deletions

View File

@ -957,7 +957,7 @@ static std::unordered_map<std::string, ggml_type> target_bpw_type(
if (out_mse) { *out_mse = total_mse; }
if (out_proj) { *out_proj = total_proj; }
const double total_err = slice_bias_lambda ? total_mse + total_bias : total_mse + tensor_bias_lambda * total_proj;
const double total_err = total_mse + total_bias;
return std::isfinite(total_err) ? total_err : infinity;
};