Performs greedy decoding on the logits given in input (best path).

If merge_repeated is True, merge repeated classes in output. This means that if consecutive logits' maximum indices are the same, only the first of these is emitted. The sequence A B B * B * B (where '*' is the blank label) becomes

  • A B B B if merge_repeated=True.
  • A B B B B if merge_rep