Computes the average negative log-likelihood (NLL) of observing the provided sequences.
- Return type:
A tensor of shape
[num_sequences]with the NLLs for each individual sequence.
When calling this function in a multi-process environment, each process receives only a subset of the predictions. If you want to aggregate predictions, make sure to gather the values returned from this method.