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

        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
        
python/aitemplate/compiler/ops/tensor/gather.py