def _gen_profile_cmd(self, profiler_prefix, cfg, x_shape_dict):
        """Generate profiler command.

        Parameters
        ----------
        profiler_prefix : str
            Directory to store profiler.
        cfg: str
            The filename generated for profiler.
        x_shape_dict : List[str, int]
            Input shapes for the profiler.
        """
        exe_path = os.path.join(profiler_prefix, cfg)
        if not os.access(exe_path, os.X_OK):
            raise RuntimeError("Profiler %s is not executable" % exe_path)
        cmd = [exe_path]
        x_shape = ["N", "H", "W", "G", "C"]
        for shape in x_shape:
            cmd.append(x_shape_dict[shape])
        command = [str(x) for x in cmd]
        return command
Generate profiler command.

        Parameters
        ----------
        profiler_prefix : str
            Directory to store profiler.
        cfg: str
            The filename generated for profiler.
        x_shape_dict : List[str, int]
            Input shapes for the profiler.
        
python/aitemplate/compiler/ops/groupnorm/groupnorm.py