Hi,
In the evaluate method here 11 the loss is calculated like so:
total_loss += len(data) * criterion(output_flat, targets).item()

Why is that? Why not just criterion(output_flat, targets).item()? Especially that during training, the loss is calculated
loss = criterion(output.view(-1, ntokens), targets)

One might say that I’m in a bit of a loss 
Thanks for the help!