Skip to content

Commit

Permalink
best_cost outside if
Browse files Browse the repository at this point in the history
  • Loading branch information
desh2608 committed Aug 26, 2018
1 parent 145b514 commit 3e89d3c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/decoder/lattice-simple-decoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,9 @@ void LatticeSimpleDecoder::ProcessNonemitting() {
iter != cur_toks_.end();
++iter) {
StateId key = iter->first;
if (fst_.NumInputEpsilons(key) != 0) {
if (fst_.NumInputEpsilons(key) != 0)
queue.push_back(key);
best_cost = std::min(best_cost, iter->second->tot_cost);
}
best_cost = std::min(best_cost, iter->second->tot_cost);
}
if (queue.empty()) {
if (!warned_) {
Expand Down

0 comments on commit 3e89d3c

Please sign in to comment.