Because I was getting back this message:
Running_corrects tensor(0, device='cuda:0')
if I just try to print as follows:
print(‘running_corrects’, running_corrects/( len(inputs) * num + 1)
So I thought It was a tensor on GPU and I need to bring it back to the CPU.
I don’t why I am not getting back an int value and that is the problem I am trying to solve.