We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3668cd1 commit fac69b9Copy full SHA for fac69b9
users/zeyer/experiments/exp2024_04_23_baselines/ctc_recog_ext.py
@@ -498,7 +498,10 @@ def __init__(self):
498
self._count_recalc_whole_seq = 0
499
500
@lru_cache(maxsize=1024)
501
- def _calc_next_lm_state(self, state: LMState):
+ def _calc_next_lm_state(self, state: LMState) -> Tuple[Any, torch.Tensor]:
502
+ """
503
+ :return: LM state, log probs [Vocab]
504
505
state_ = self.mapping_states[state]
506
507
if state_.label_seq == [model.bos_idx]:
0 commit comments