    def _get_func(self, fmt_str):
        """
        Parameters
        ----------
        inputs : string
            format string to create func_key for looking up func
            from the registry

        Returns
        -------
        the function generator
        """
        target = backend.target.Target.current()
        func_key = fmt_str.format(target=target.name(), op=self._attrs["op"])
        return registry.get(func_key)
Parameters
----------
inputs : string
format string to create func_key for looking up func
from the registry

Returns
-------
the function generator
python/aitemplate/compiler/ops/tensor/dynamic_slice.py