Imported from https://github.com/programmingmlpapers/pytorch-GAN