src/transformers/models/speech_to_text/modeling_tf_speech_to_text.py/TFSpeech2TextSinusoidalPositionalEmbedding/__init__
class TFSpeech2TextSinusoidalPositionalEmbedding:    def __init__(self, num_positions: int, embedding_dim: int, padding_idx: Optional[int] = None, **kwargs):
        super().__init__(**kwargs)
        self.offset = 2
        self.embedding_dim = embedding_dim
        self.padding_idx = padding_idx
        self.embedding_weights = self._get_embedding(num_positions + self.offset, embedding_dim, padding_idx)