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