Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/OpenNMT/CTranslate2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Klein <guillaume.klein@systrangroup.com>2018-10-15 18:28:06 +0300
committerGuillaume Klein <guillaume.klein@systrangroup.com>2018-10-15 18:28:06 +0300
commitafb92c0fa8a6154501b61e42e291c4671ec529a5 (patch)
treef94882202730e3bed86023e5658061ab2a8769f3
parentb8527e87c4dfb808ac624e0499d3f88e3c79adb0 (diff)
refs #50111: Do not return normalized scorev0.7.2
-rw-r--r--src/decoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder.cc b/src/decoder.cc
index edece7d2..dde86a13 100644
--- a/src/decoder.cc
+++ b/src/decoder.cc
@@ -242,7 +242,7 @@ namespace ctranslate2 {
if (sampled_ids[batch_id].size() >= num_hypotheses)
break;
sampled_ids[batch_id].emplace_back(std::move(pair.second));
- scores[batch_id].push_back(-pair.first / pair.second.size());
+ scores[batch_id].push_back(-pair.first);
}
hypotheses[batch_id].clear();
}