from local

This commit is contained in:
dohe0342 2022-12-10 15:06:17 +09:00
parent e9d5b46d53
commit c12b23a73b
2 changed files with 1 additions and 0 deletions

View File

@ -726,6 +726,7 @@ def compute_loss(
sp: spm.SentencePieceProcessor,
batch: dict,
is_training: bool,
decode: bool = False,
) -> Tuple[Tensor, MetricsTracker]:
"""
Compute transducer loss given the model and its inputs.