mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-18 16:55:05 +02:00
squash! sampling : simplify backend sampling logic decode
The commit fixes a variable shadowing issue in the `llama_context::decode` function which was introduced in a previous refactoring.
This commit is contained in:
@@ -1361,7 +1361,7 @@ int llama_context::decode(const llama_batch & batch_inp) {
|
||||
// ggml_graph_dump_dot(gf, NULL, "llama.dot");
|
||||
//}
|
||||
|
||||
const bool backend_has_sampled = !res->t_sampled_tokens.empty() || !res->t_sampled_probs.empty() || !res->t_sampled_logits.empty();
|
||||
backend_has_sampled = !res->t_sampled_tokens.empty() || !res->t_sampled_probs.empty() || !res->t_sampled_logits.empty();
|
||||
|
||||
if (has_backend_samplers && backend_has_sampled) {
|
||||
const auto seq_to_batch_idx = build_seq_to_batch_idx(ubatch);
|
||||
|
||||
Reference in New Issue
Block a user