Revert "PR #3279 - removed unrelated code"

This reverts commit 78c4ef17b1.
This commit is contained in:
godeffroy 2020-09-14 22:45:42 +02:00
parent 15ce05aa01
commit 14bd9033d6

View File

@ -96,6 +96,9 @@ DecoderState::next(const double *probs,
if (full_beam && log_prob_c + prefix->score < min_cutoff) { if (full_beam && log_prob_c + prefix->score < min_cutoff) {
break; break;
} }
if (prefix->score == -NUM_FLT_INF) {
continue;
}
assert(prefix->is_empty() || prefix->timesteps != nullptr); assert(prefix->is_empty() || prefix->timesteps != nullptr);
// blank // blank