Imported from https://github.com/LynnHo/DCGAN-LSGAN-WGAN-WGAN-GP-Tensorflow