src/transformers/models/encoder_decoder/modeling_tf_encoder_decoder.py/TFEncoderDecoderModel/resize_token_embeddings
class TFEncoderDecoderModel:    def resize_token_embeddings(self, *args, **kwargs):
        raise NotImplementedError(
            "Resizing the embedding layers via the TFEncoderDecoderModel directly is not supported.Please use the"
            " respective methods of the wrapped objects (model.encoder.resize_token_embeddings(...) or"
            " model.decoder.resize_token_embeddings(...))"
        )