MNIST from torchvision.datasets: are the test images part of the training dataset?


For a project on adversarial examples ( I use the MNIST database.

I decided to download the and files using torchvision.datasets.MNIST, then to save the first 50.000 values of as, and the last 10.000 as

But when running performance tests on my trained networks, the accuracy over the test dataset is exactly the same as the accuracy over the val dataset. Are the last 10.000 images of the same as ?

If so, could this be changed ? It makes little sense to test the accuracy over already known values.

Sorry, I was wrong. An error in my code led me to have the same results on test and val. Hopefully it its not the case.