    def get_timesteps(self, token_idxs: List[int]) -> List[int]:
        """Returns frame numbers corresponding to every non-blank token.

        Parameters
        ----------
        token_idxs : List[int]
            IDs of decoded tokens.

        Returns
        -------
        List[int]
            Frame numbers corresponding to every non-blank token.
        """
        timesteps = []
        for i, token_idx in enumerate(token_idxs):
            if token_idx == self.blank:
                continue
            if i == 0 or token_idx != token_idxs[i-1]:
                timesteps.append(i)
        return timesteps
Returns frame numbers corresponding to every non-blank token.

Parameters
----------
token_idxs : List[int]
IDs of decoded tokens.

Returns
-------
List[int]
Frame numbers corresponding to every non-blank token.
examples/speech_recognition/new/decoders/flashlight_decoder.py