Solved by braindotai in post #2 
              
              
                You have to divide the accuracy summed over test data by number of batches in test data, not train data. So print accuracy as print(f’Accuracy: {(accuracy/len(test_data):.8f}’)