@nouiz, wouldn't it be cleaner to add GpuAdvancedSubtensor1.c_code() method and move this statement there?