    def gen_function(self) -> str:
        """Generate function body.

        Returns
        -------
        str
            The rendered template of generated function body.
        """
        target = backend.target.Target.current()
        func_key = "{target}.{op}.gen_function".format(
            target=target.name(), op=self._attrs["op"]
        )
        self._attrs["exec_cond_template"] = EXEC_COND_TEMPLATE
        func = registry.get(func_key)
        return func(self._attrs)
Generate function body.

Returns
-------
str
The rendered template of generated function body.
python/aitemplate/compiler/ops/softmax/softmax.py