Imported from https://github.com/neurips-2019/GAC