Fix minor logic flaw
This commit is contained in:
parent
1fbc59f867
commit
f184450806
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue