코드를 실행하면 다음과 같이 출력되면서 데이터셋을 내려받습니다.
Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz to ../chap02/data/MNIST_DATASET\MNIST\raw\train-images-idx3-ubyte.gz 100.0% Extracting ../chap02/data/MNIST_DATASET\MNIST\raw\train-images-idx3-ubyte.gz to ../chap02/data/MNIST_DATASET\MNIST\raw Downloading http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz to ../chap02/data/MNIST_DATASET\MNIST\raw\train-labels-idx1-ubyte.gz 102.8% Extracting ../chap02/data/MNIST_DATASET\MNIST\raw\train-labels-idx1-ubyte.gz to ../chap02/data/MNIST_DATASET\MNIST\raw Downloading http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz to ../chap02/data/MNIST_DATASET\MNIST\raw\t10k-images-idx3-ubyte.gz 100.0% Extracting ../chap02/data/MNIST_DATASET\MNIST\raw\t10k-images-idx3-ubyte.gz to ../chap02/data/MNIST_DATASET\MNIST\raw Downloading http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz to ../chap02/data/MNIST_DATASET\MNIST\raw\t10k-labels-idx1-ubyte.gz 112.7% e:\Anaconda3\envs\pytorch\lib\site-packages\torchvision\datasets\mnist.py:479: UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors. This means you can write to the underlying (supposedly non-writeable) NumPy array using the tensor. You may want to copy the array to protect its data or make it writeable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:143.) return torch.from_numpy(parsed.astype(m[2], copy=False)).view(*s) Extracting ../chap02/data/MNIST_DATASET\MNIST\raw\t10k-labels-idx1-ubyte.gz to ../chap02/data/MNIST_DATASET\MNIST\raw Processing... Done!