move print line to the end of for loop on epoch. this should fix 0 total loss
and you sould change some other lines  for the code to be bug free.

total_loss =  loss.item() + total_loss
move loss_fn definition out of loop body