Computes the negative log-likelihood (NLL) of each of the provided datapoints.
- Return type
A tensor of shape
[num_datapoints]with the NLL for each datapoint.
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.