diff options
author | Guillaume Klein <guillaume.klein@systrangroup.com> | 2018-10-15 18:28:06 +0300 |
---|---|---|
committer | Guillaume Klein <guillaume.klein@systrangroup.com> | 2018-10-15 18:28:06 +0300 |
commit | afb92c0fa8a6154501b61e42e291c4671ec529a5 (patch) | |
tree | f94882202730e3bed86023e5658061ab2a8769f3 | |
parent | b8527e87c4dfb808ac624e0499d3f88e3c79adb0 (diff) |
refs #50111: Do not return normalized scorev0.7.2
-rw-r--r-- | src/decoder.cc | 2 |
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(); } |