@ptrblck Thanks for quick reply. I tried data.numpy()
import matplotlib.pyplot as plt
for batch_idx, (inputs, labels) in enumerate(svhn_train_loader):
     plt.figure()
     plt.imshow(inputs.numpy())
     plt.show()

TypeError: Invalid dimensions for image data
How can I fix  this error?