from local

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

View File

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