PR #3279 - removed unrelated code
This commit is contained in:
parent
c3d6f8d923
commit
78c4ef17b1
@ -96,9 +96,6 @@ 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;
|
|
||||||
}
|
|
||||||
if (!prefix->is_empty() && prefix->timesteps.empty()) {
|
if (!prefix->is_empty() && prefix->timesteps.empty()) {
|
||||||
// This should never happen. But we report it if it does.
|
// This should never happen. But we report it if it does.
|
||||||
std::cerr<<"error: non-empty prefix has empty timestep sequence"<<std::endl;
|
std::cerr<<"error: non-empty prefix has empty timestep sequence"<<std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user