We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f0c061 commit 5a87481Copy full SHA for 5a87481
beginner_source/blitz/cifar10_tutorial.py
@@ -105,7 +105,7 @@ def imshow(img):
105
106
# get some random training images
107
dataiter = iter(trainloader)
108
-images, labels = dataiter.next()
+images, labels = next(dataiter)
109
110
# show images
111
imshow(torchvision.utils.make_grid(images))
@@ -210,7 +210,7 @@ def forward(self, x):
210
# Okay, first step. Let us display an image from the test set to get familiar.
211
212
dataiter = iter(testloader)
213
214
215
# print images
216
0 commit comments