(dataset, batch_size, root='./data')
return testloader
Construct a CIFAR test dataset loader.
Construct a CIFAR test dataset loader.
Construct a CIFAR test dataset loader .
def cifar_test_loader(dataset, batch_size, root='./data'):
    """
    Construct a CIFAR test dataset loader.
    """
    testset = dataset(root=root, train=False, download=True, transform=None)
    meanstd = ((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010))
    testloader = condensa.data.GPUDataLoader(testset,
                                             batch_size=batch_size,
                                             shuffle=False,
                                             num_workers=8,
                                             meanstd=meanstd)
    return testloader
def cifar_test_loader ( dataset , batch_size , root = './data' ) : testset = dataset ( root = root , train = False , download = True , transform = None ) meanstd = ( ( 0.4914 , 0.4822 , 0.4465 ) , ( 0.2023 , 0.1994 , 0.2010 ) ) testloader = condensa . data . GPUDataLoader ( testset , batch_size = batch_size , shuffle = False , num_workers = 8 , meanstd = meanstd ) return testloader