Imported from https://github.com/minhnhat93/tf-SNDCGAN