Skip to content

Commit

Permalink
llama : use fabsf in llama_sample_tail_free
Browse files Browse the repository at this point in the history
  • Loading branch information
cebtenzzre committed Aug 25, 2023
1 parent 232caf3 commit 5afe911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3908,7 +3908,7 @@ void llama_sample_tail_free(struct llama_context * ctx, llama_token_data_array *

// Calculate absolute value of second derivatives
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
Expand Down

0 comments on commit 5afe911

Please sign in to comment.