    def _gen_exec_key(self, name_value_mapping):
        """Generate execution key from the name value mapping.

        Parameters
        ----------
        name_value_mapping : Dict[str, Union[int, List[int]]
            Dict for name and value.

        Returns
        ----------
            str
        """
        key_strs = []
        for name, values in name_value_mapping.items():
            if len(values) == 1:
                key_strs.append(f"{name} == {values[0]}")
            elif len(values) > 1:
                key_strs.append(f"{name} >= {values[0]} && {name} <= {values[-1]}")
            else:
                raise RuntimeError(f"Group norm input has empty dim values: {values}")
        return " && ".join(key_strs)
Generate execution key from the name value mapping.

Parameters
----------
name_value_mapping : Dict[str, Union[int, List[int]]
Dict for name and value.

Returns
----------
str
python/aitemplate/compiler/ops/groupnorm/groupnorm.py