src/transformers/models/speech_encoder_decoder/modeling_speech_encoder_decoder.py/SpeechEncoderDecoderModel/_reorder_cache
class SpeechEncoderDecoderModel:    def _reorder_cache(self, past, beam_idx):
        # apply decoder cache reordering here
        return self.decoder._reorder_cache(past, beam_idx)