Imported from https://github.com/sugyan/tf-dcgan