Compilation templates gan