ptrblck:

epoch_acc


on your update

I also typecast the values of dataset_sizes[phase] ,  float(dataset_sizes[phase]  to float(dataset_sizes[phase]) , float(dataset_sizes[phase]) respectively as they were integer varibles before;
But the strange  thing I noticed  was here
Iterate over data.
  for batch in dataloaders[phase]:
     print(phase)
     if torch.cuda.is_available():
         inputs = batch['image'].cuda()
         labels = batch['class'].cuda()

it gave me this output

means that phase is not going to train mode…am I right?