mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
cab22150e6
commit
4fb2956572
Binary file not shown.
@ -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 = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user