Skip to content

Commit

Permalink
Update train.py (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr authored Oct 11, 2023
1 parent 9af144c commit 0d09a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egs/aishell/ASR/pruned_transducer_stateless7/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def compute_loss(
if batch_idx_train >= warm_step
else 0.1 + 0.9 * (batch_idx_train / warm_step)
)
loss = params.simple_loss_scale * simple_loss + pruned_loss_scale * pruned_loss
loss = simple_loss_scale * simple_loss + pruned_loss_scale * pruned_loss

assert loss.requires_grad == is_training

Expand Down

0 comments on commit 0d09a44

Please sign in to comment.