Learn practical skills, build real-world projects, and advance your career
import torch
import torchvision
import torchvision.datasets
from torchvision.datasets import MNIST
dataset = MNIST(root='/data', download=True)
len(dataset)
60000
image, label = dataset[0]
type(image), type(label)
(PIL.Image.Image, int)