mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-19 05:54:20 +00:00
CTC loss return tensor
This commit is contained in:
parent
0a465794a8
commit
79b877f037
@ -353,6 +353,6 @@ class AsrModel(nn.Module):
|
||||
target_lengths=y_lens,
|
||||
)
|
||||
else:
|
||||
ctc_loss = 0
|
||||
ctc_loss = torch.zeros(0)
|
||||
|
||||
return simple_loss, pruned_loss, ctc_loss
|
||||
|
Loading…
x
Reference in New Issue
Block a user