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
9617c25fb1
commit
296369343a
Binary file not shown.
@ -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 = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user