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
c4c2a024ae
commit
9eb75a045f
Binary file not shown.
@ -236,7 +236,7 @@ def greedy_search(
|
|||||||
Returns:
|
Returns:
|
||||||
best path result
|
best path result
|
||||||
"""
|
"""
|
||||||
|
ctc_probs = probs
|
||||||
_, max_index = ctc_probs.max(2) # (B, maxlen)
|
_, max_index = ctc_probs.max(2) # (B, maxlen)
|
||||||
max_index = max_index.masked_fill_(mask, 0) # (B, maxlen)
|
max_index = max_index.masked_fill_(mask, 0) # (B, maxlen)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user