src/transformers/models/speech_to_text/modeling_speech_to_text.py/Speech2TextForConditionalGeneration/get_encoder
class Speech2TextForConditionalGeneration:    def get_encoder(self):
        return self.model.get_encoder()