Just the same code, same data. The difference is the version of pyTorch. When I saved image, the color of image became much deeper.
to save_image, give the option normalize=True
Like this: https://github.com/pytorch/examples/blob/master/dcgan/main.py#L254-L256