From 59c73f1c469b6017f3ee8c8f0802353e7bab0108 Mon Sep 17 00:00:00 2001 From: godeffroy Date: Mon, 31 Aug 2020 09:38:54 +0200 Subject: [PATCH] PR #3279 - assert instead of reporting error to std::cerr --- native_client/ctcdecode/ctc_beam_search_decoder.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/native_client/ctcdecode/ctc_beam_search_decoder.cpp b/native_client/ctcdecode/ctc_beam_search_decoder.cpp index e35e0257..f65888c4 100644 --- a/native_client/ctcdecode/ctc_beam_search_decoder.cpp +++ b/native_client/ctcdecode/ctc_beam_search_decoder.cpp @@ -96,11 +96,7 @@ DecoderState::next(const double *probs, if (full_beam && log_prob_c + prefix->score < min_cutoff) { break; } - if (!prefix->is_empty() && prefix->timesteps.empty()) { - // This should never happen. But we report it if it does. - std::cerr<<"error: non-empty prefix has empty timestep sequence"<is_empty() || !prefix->timesteps.empty()); // blank if (c == blank_id_) {