Hello, I am a beginner of Pytorch. When I tried to execute codes in the 60-min blitz provided in the tutorial website, I found the error below:
/home/zephyr/anaconda3/bin/python3.6 /home/zephyr/PycharmProjects/prac1/test1.py
Files already downloaded and verified
Files already downloaded and verified
<torchvision.datasets.cifar.CIFAR10 object at 0x7f8027222cc0>

<torch.utils.data.dataloader.DataLoader object at 0x7f80272299e8>

deer  ship   car   car
Exception ignored in: <bound method DataLoaderIter.del of <torch.utils.data.dataloader.DataLoaderIter object at 0x7f80271bff28>>
Traceback (most recent call last):
File “/home/zephyr/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py”, line 333, in del
File “/home/zephyr/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py”, line 319, in _shutdown_workers
File “/home/zephyr/anaconda3/lib/python3.6/multiprocessing/queues.py”, line 337, in get
ImportError: sys.meta_path is None, Python is likely shutting down
Process finished with exit code 0
My code:
dataiter = iter(trainloader)
images, labels = next(dataiter)
show images
imshow(torchvision.utils.make_grid(images))
print labels
print(’ ‘.join(’%5s’ % classes[labels[j]] for j in range(4)))
So could anyone help me? Thanks very much!