I recently started learning the deep learning with pytorch using this tutorial.
I am having problem with these lines of code.
Parameter train=True
means it will take out the training data.
But how much data does it take for the training 50%?
How can we specify the amount of data for training. Similarly, couldn't understand batch_size
and num_workers
, what that means in loading the data data? Is the batch_size
parameter is similar to one used in deep learning for training?
download=True, transform=transform)
trainloader = torch.utils.data.DataLoader(trainset, batch_size=4,
shuffle=True, num_workers=2)
testset = torchvision.datasets.CIFAR10(root='./data', train=False,
download=True, transform=transform)
testloader = torch.utils.data.DataLoader(testset, batch_size=4,
shuffle=False, num_workers=2)