src/transformers/models/pegasus/modeling_tf_pegasus.py/TFPegasusForConditionalGeneration/get_encoder
class TFPegasusForConditionalGeneration:    def get_encoder(self):
        return self.model.encoder