src/transformers/models/t5/modeling_tf_t5.py/TFT5PreTrainedModel/set_input_embeddings
class TFT5PreTrainedModel:    def set_input_embeddings(self, value):
        self.shared = value
        self.encoder.embed_tokens = self.shared
        if hasattr(self, "decoder"):
            self.decoder.embed_tokens = self.shared