Oh, I never knew about it. Yes, I am doing it -
 train_loss = train_loss + ((1 / (batch_idx + 1)) * (loss.data - train_loss))
and valid loss
valid_loss +=  valid_loss + ((1 / (batch_idx + 1)) * (loss.data - valid_loss)).
I’ll change it , are there any more such issues which results in accumulating history.
Thanks.