Skip to content

Commit fac69b9

Browse files
committed
doc
1 parent 3668cd1 commit fac69b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

users/zeyer/experiments/exp2024_04_23_baselines/ctc_recog_ext.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,10 @@ def __init__(self):
498498
self._count_recalc_whole_seq = 0
499499

500500
@lru_cache(maxsize=1024)
501-
def _calc_next_lm_state(self, state: LMState):
501+
def _calc_next_lm_state(self, state: LMState) -> Tuple[Any, torch.Tensor]:
502+
"""
503+
:return: LM state, log probs [Vocab]
504+
"""
502505
state_ = self.mapping_states[state]
503506

504507
if state_.label_seq == [model.bos_idx]:

0 commit comments

Comments
 (0)