Imported from https://github.com/elvisyjlin/AttGAN-PyTorch