Fix abs() warning
This commit is contained in:
parent
d7d2e6a0f0
commit
202ed75ad4
1 changed files with 1 additions and 1 deletions
|
@ -1947,7 +1947,7 @@ void llama_sample_tail_free(struct llama_context * ctx, llama_token_data_array *
|
||||||
|
|
||||||
// Calculate absolute value of second derivatives
|
// Calculate absolute value of second derivatives
|
||||||
for (size_t i = 0; i < second_derivatives.size(); ++i) {
|
for (size_t i = 0; i < second_derivatives.size(); ++i) {
|
||||||
second_derivatives[i] = abs(second_derivatives[i]);
|
second_derivatives[i] = fabsf(second_derivatives[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Normalize the second derivatives
|
// Normalize the second derivatives
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue