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