from local

This commit is contained in:
dohe0342 2023-02-25 16:20:58 +09:00
parent 9617c25fb1
commit 296369343a
2 changed files with 1 additions and 0 deletions

View File

@ -238,6 +238,7 @@ def greedy_search(
""" """
ctc_probs = probs ctc_probs = probs
_, max_index = ctc_probs.max(2) # (B, maxlen) _, max_index = ctc_probs.max(2) # (B, maxlen)
print(mask.size())
max_index = max_index.masked_fill_(mask, 0) # (B, maxlen) max_index = max_index.masked_fill_(mask, 0) # (B, maxlen)
ret_hyps = [] ret_hyps = []