From cd389dda7e5a8fb04eb2f1233c2a840e8b5de8da Mon Sep 17 00:00:00 2001 From: minhthuc Date: Mon, 19 Aug 2024 17:32:27 +0200 Subject: [PATCH] fix compilation --- src/decoding.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/decoding.cc b/src/decoding.cc index 1dd25acf2..55a9d7844 100644 --- a/src/decoding.cc +++ b/src/decoding.cc @@ -520,7 +520,7 @@ namespace ctranslate2 { disable_tokens.apply(); std::vector logits_vec; if (return_logits_vocab) - logits_vec = std::move(build_logits(logits, cur_batch_size)); + logits_vec = build_logits(logits, cur_batch_size); StorageView log_probs(dtype, device); if (bias_towards_prefix) { @@ -776,7 +776,7 @@ namespace ctranslate2 { min_length, /*return_scores=*/true, return_attention, - return_log_probs_vocab, + return_logits_vocab, return_prefix, /*num_hypotheses=*/1, include_eos_in_hypotheses, @@ -858,7 +858,7 @@ namespace ctranslate2 { std::vector logits_vec; StorageView logits_orig(dtype, device); if (return_logits_vocab) { - logits_vec = std::move(build_logits(logits, logits.dim(0))); + logits_vec = build_logits(logits, logits.dim(0)); logits_orig.copy_from(logits); } // Compute log probs only if required.