espnet.lm.pytorch_backend.lm.compute_perplexity
Less than 1 minute
espnet.lm.pytorch_backend.lm.compute_perplexity
espnet.lm.pytorch_backend.lm.compute_perplexity(result)
Compute and add the perplexity to the LogReport.
- Parameters:result (dict) – The current observations