minor : brackets
This commit is contained in:
parent
c6479a3cda
commit
724e5ec124
1 changed files with 2 additions and 1 deletions
|
@ -1229,8 +1229,9 @@ static llama_vocab::id llama_sample_top_p_top_k(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (top_k > 0 && top_k < n_logits)
|
if (top_k > 0 && top_k < n_logits) {
|
||||||
sample_top_k(logits_id, top_k);
|
sample_top_k(logits_id, top_k);
|
||||||
|
}
|
||||||
|
|
||||||
float maxl = -std::numeric_limits<float>::infinity();
|
float maxl = -std::numeric_limits<float>::infinity();
|
||||||
for (const auto & kv : logits_id) {
|
for (const auto & kv : logits_id) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue