Skip to content

Commit

Permalink
Fix for beam alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanNaren committed Oct 27, 2017
1 parent 52a64a8 commit 2e9addd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytorch_ctc/src/ctc_beam_search.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ Status CTCBeamSearchDecoder<CTCBeamState, CTCBeamComparer>::Decode(
// Storage for top paths.
std::vector<std::vector<int>> beams;
std::vector<float> beam_log_probabilities;
std::vector<std::vector<int>> beam_alignments;
int top_n = output->size();
if (std::any_of(output->begin(), output->end(),
[batch_size_](const CTCDecoder::Output& output) -> bool {
Expand Down Expand Up @@ -188,7 +187,7 @@ Status CTCBeamSearchDecoder<CTCBeamState, CTCBeamComparer>::Decode(
leaves_.push(entry);
}


std::vector<std::vector<int>> beam_alignments;
Status status = TopPaths(top_n, &beams, &beam_log_probabilities, &beam_alignments,
merge_repeated_);

Expand Down

0 comments on commit 2e9addd

Please sign in to comment.