From 80745105728fed7a22bb5cbca7c28634ceb81879 Mon Sep 17 00:00:00 2001 From: Carlos Mullov Date: Fri, 27 Feb 2026 17:08:29 +0100 Subject: [PATCH] fix issue with return_logits_vocab option --- src/decoding.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decoding.cc b/src/decoding.cc index 84f39ac37..45847b540 100644 --- a/src/decoding.cc +++ b/src/decoding.cc @@ -631,7 +631,7 @@ namespace ctranslate2 { if (alive_attention) result.attention.emplace_back(build_attention(alive_attention, i, k, start, end)); if (return_logits_vocab) { - result.logits_vocab.emplace_back(std::move(logits_vec[i * k])); + result.logits_vocab.emplace_back(std::vector{std::move(logits_vec[i * k])}); } // Move another active beam to this position.