Hi! Thanks for the reply, I permuted the image and am still getting this error:
This is my code:
# generating new images
# sets a random seed
manualSeed = random.randint(1, 10000) # use if you want new results
print("Random Seed: ", manualSeed)
random.seed(manualSeed)
torch.manual_seed(manualSeed)
fake = gen(torch.randn(1, n_z, 1, 1, device=‘cpu’)).detach()
plt.figure(figsize=(4, 200))
fake.shape
plt.imshow(fake.permute(1,2,0))
This is the error message:

Random Seed:  5002
RuntimeError                              Traceback (most recent call last)
 in ()
13 plt.figure(figsize=(4, 200))
14 fake.shape
—> 15 plt.imshow(fake.permute(1,2,0))
16
17 #plt.imshow(np.transpose(vutils.make_grid(fake, padding=2, normalize=True), (1,2,0)))
RuntimeError: number of dims don’t match in permute