    def extend_state(self, state):
        """Extend state for decoding.

        This extension is for streaming decoding
        as in Eq (14) in https://arxiv.org/abs/2006.14941

        Args:
            state: The states of hyps

        Returns: exteded state

        """
        new_state = []
        for s in state:
            new_state.append(self.impl.extend_state(s))

        return new_state
Extend state for decoding.

This extension is for streaming decoding
as in Eq (14) in https://arxiv.org/abs/2006.14941

Args:
state: The states of hyps

Returns: exteded state
modules/wenet_extractor/paraformer/search/ctc.py