LAS decodes characters with an attention decoder trained by maximum likelihood. The training loss is the sum of the negative log-probabilities of the correct characters, the same sequence loss as in machine translation.
Implement char_nll(logp, targets), the summed negative log-likelihood of the transcript.
Pick the log-probability of the correct character at each step, negate, and sum.
No results yet
Run your code to check it against the examples, or submit to run every test.