have you try to print the loss in batch iteration?
I  think its better to seek the loss in every iteration first rather than try to print it out in every epoch. I suggest you to it first from batch iteration to debug it…