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
3d476af507
commit
d21a75aa87
Binary file not shown.
@ -870,7 +870,8 @@ def compute_loss(
|
||||
use_double_scores=params.use_double_scores,
|
||||
)
|
||||
#assert ctc_loss.requires_grad == is_training
|
||||
print(ctc_loss.requires_grad, is_training)
|
||||
ctc_loss.backward()
|
||||
exit()
|
||||
loss += params.ctc_loss_scale * ctc_loss
|
||||
|
||||
info["ctc_loss"] = ctc_loss.detach().cpu().item()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user