MCPcopy
hub / github.com/deepspeedai/DeepSpeedExamples / imshow

Function imshow

cifar/cifar10_deepspeed.py:65–69  ·  view source on GitHub ↗
(img)

Source from the content-addressed store, hash-verified

63# functions to show an image
64
65def imshow(img):
66 img = img / 2 + 0.5 # unnormalize
67 npimg = img.numpy()
68 plt.imshow(np.transpose(npimg, (1, 2, 0)))
69 plt.show()
70
71# get some random training images
72dataiter = iter(trainloader)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected