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
a5601c5456
commit
9777621c72
Binary file not shown.
@ -675,6 +675,9 @@ def compute_loss(
|
||||
ctc_loss = (1-params.interctc_weight) * ctc_loss + params.interctc_weight * inter_ctc_loss
|
||||
|
||||
if not params.interctc and not params.condition:
|
||||
if type(nnet_output) == tuple:
|
||||
nnet_output = nnet_output[0]
|
||||
|
||||
dense_fsa_vec = k2.DenseFsaVec(
|
||||
nnet_output,
|
||||
supervision_segments,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user