src/transformers/models/whisper/modeling_whisper.py/WhisperForConditionalGeneration/get_encoder
class WhisperForConditionalGeneration:    def get_encoder(self):
        return self.model.get_encoder()