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

        Parameters
        ----------
        profiler_prefix : str
            Directory to store profiler.
        cfg: str
            The filename generated for profiler.
        x_shape : List[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]
        for shape in x_shape:
            cmd.append(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 : List[int]
Input shapes for the profiler.
python/aitemplate/compiler/ops/softmax/softmax.py