Revert "PR #3279 - removed unrelated code"
This reverts commit 78c4ef17b1
.
This commit is contained in:
parent
15ce05aa01
commit
14bd9033d6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user