src/transformers/models/speecht5/modeling_speecht5.py/SpeechT5TextEncoderPrenet/__init__
class SpeechT5TextEncoderPrenet:    def __init__(self, config):
        super().__init__()
        self.config = config
        self.embed_tokens = nn.Embedding(config.vocab_size, config.hidden_size, config.pad_token_id)
        self.encode_positions = SpeechT5ScaledPositionalEncoding(
            config.positional_dropout,
            config.hidden_size,
            config.max_text_positions,
        )