Imported from https://github.com/jiahuei/COMIC-Towards-A-Compact-Image-Captioning-Model-with-Attention