from local

This commit is contained in:
dohe0342 2023-02-25 15:42:08 +09:00
parent 9eb75a045f
commit cab22150e6
2 changed files with 1 additions and 0 deletions

View File

@ -237,6 +237,7 @@ def greedy_search(
best path result
"""
ctc_probs = probs
print(ctc_probs.size())
_, max_index = ctc_probs.max(2) # (B, maxlen)
max_index = max_index.masked_fill_(mask, 0) # (B, maxlen)