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