def imshowPytorch(img): npimg = img.numpy() plt.imshow(np.transpose(npimg, (1, 2, 0))) def imshowTensorFlow(img): plt.imshow(img)