Big negative loss but appropriate accuracy

Hi guys,
I was just trying to experiment with building custom databunch using PyTorch DataLoader for a that I observed this issue! I’m getting good results with MNIST sample dataset but the loss is a big negative number. Does anyone know why?
@sgugger I would be really thankful if you take a look at this code snippet