What do these lines of code return:
trainset = tv.datasets.CIFAR10(
    root = './data',
    train = True,
    download = True, 
    transform = transform
)

Do you get any error trying to download the data?