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
cf2483e69a
commit
200bdd4c8a
Binary file not shown.
Binary file not shown.
@ -869,9 +869,7 @@ def compute_loss(
|
||||
reduction="sum",
|
||||
use_double_scores=params.use_double_scores,
|
||||
)
|
||||
#assert ctc_loss.requires_grad == is_training
|
||||
ctc_loss.backward()
|
||||
exit()
|
||||
assert ctc_loss.requires_grad == is_training
|
||||
loss += params.ctc_loss_scale * ctc_loss
|
||||
|
||||
info["ctc_loss"] = ctc_loss.detach().cpu().item()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user