I guess you are trying to assign the numpy array to the tensor itself via:
fake_images[0] = fake_images[0].detach().cpu().numpy()

If that’s the case, assign the numpy array to a new variable as seen in my code:
x = fake_images[0].detach().cpu().numpy()