I tried this from the udemy pytorch course but got an error
dataiter = iter(train_data_loader)
images, labels = dataiter.next()
for idx in np.arange(2):
ax = fig.add_subplot(2,20/2,idx+1, xticks=[],yticks=[])
ax.imshow(np.squeeze(images[idx]))
Error: TypeError: Invalid shape (3, 256, 256) for image data