Dear all!
I would like to write this code for training a  model of Resnet34 (train 9) from image data. I don’t understands some parts in particular row 6 it is correct to do calculation of the loss in this way? I use batch size of 4  and the same for row 23.
It is correct  calculate the ACC  after training  in this way?
Thanks in advance for any help