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
8fa89c8518
commit
d29ee9df25
Binary file not shown.
@ -718,7 +718,8 @@ def compute_loss(
|
||||
)
|
||||
|
||||
loss = simple_loss_scale * simple_loss + pruned_loss_scale * pruned_loss
|
||||
|
||||
|
||||
'''
|
||||
# Compute ctc loss
|
||||
|
||||
# NOTE: We need `encode_supervisions` to sort sequences with
|
||||
@ -749,7 +750,7 @@ def compute_loss(
|
||||
)
|
||||
assert ctc_loss.requires_grad == is_training
|
||||
loss += params.ctc_loss_scale * ctc_loss
|
||||
|
||||
'''
|
||||
assert loss.requires_grad == is_training
|
||||
|
||||
info = MetricsTracker()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user