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
936bb89970
commit
e433e93b80
Binary file not shown.
@ -652,6 +652,17 @@ def compute_loss(
|
||||
)
|
||||
for i in [2,5,8,11,14]
|
||||
]
|
||||
|
||||
inter_ctc_loss = 0
|
||||
for fsa_vec_inter in dense_fsa_vec_inter:
|
||||
inter_ctc_loss += k2.ctc_loss(
|
||||
decoding_graph=decoding_graph,
|
||||
dense_fsa_vec=dense_fsa_vec_inter,
|
||||
output_beam=params.beam_size,
|
||||
reduction=params.reduction,
|
||||
use_double_scores=params.use_double_scores,
|
||||
)
|
||||
|
||||
|
||||
ctc_loss = (1-params.interctc_weight) * k2.ctc_loss(
|
||||
decoding_graph=decoding_graph,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user