    def batch_init_state(self, x: torch.Tensor) -> Any:
        """Get an initial state for decoding (optional).

        Args:
            x (torch.Tensor): The encoded feature tensor

        Returns: initial state

        """
        return self.init_state(x)
Get an initial state for decoding (optional).

Args:
x (torch.Tensor): The encoded feature tensor

Returns: initial state
modules/wenet_extractor/paraformer/search/scorer_interface.py