1.Yes. With the batch_size 1, it took me 37.22 seconds to read the dataset.
3.e.g. ImageNet, Qmnist and Kinetics-400.
It is so confusing that you answered the question in English, but you didn’t read the English version directly.
I want to know what the numbers in the two square brackets represent. Can someone help me?
It’s the index of the tensor, which is line 0 col 0.
mnist_train.shape #this line is used to print the shape of a typical tensor in the data set(which is train set in this case).
The output is torch.Size([1, 28, 28]) .Represents ([channal,height,width]) .
It’s a grayscale image, so it’s channal will be 1.
train_iter = data.DataLoader(mnist_train, batch_size, shuffle=True,
使用if name == ‘main’:也不行