from local

This commit is contained in:
dohe0342 2022-12-10 14:56:47 +09:00
parent c64ac6b792
commit 51908aa976
2 changed files with 1 additions and 0 deletions

View File

@ -838,6 +838,7 @@ def compute_loss(
info["frames"] = (feature_lens // params.subsampling_factor).sum().item()
# Note: We use reduction=sum while computing the loss.
info["utterances"] = feature.size(0)
info["loss"] = loss.detach().cpu().item()
info["simple_loss"] = simple_loss.detach().cpu().item()
info["pruned_loss"] = pruned_loss.detach().cpu().item()