Skip to content
This repository was archived by the owner on Oct 27, 2023. It is now read-only.

Commit 2caa4a6

Browse files
authored
Merge pull request pytorch#379 from orrblue/master
Blitz tutorial code will now actually display an image
2 parents 95332e9 + 5df4765 commit 2caa4a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

beginner_source/blitz/cifar10_tutorial.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def imshow(img):
9393
img = img / 2 + 0.5 # unnormalize
9494
npimg = img.numpy()
9595
plt.imshow(np.transpose(npimg, (1, 2, 0)))
96+
plt.show()
9697

9798

9899
# get some random training images

0 commit comments

Comments
 (0)