src/transformers/models/pegasus/modeling_pegasus.py/PegasusSinusoidalPositionalEmbedding/__init__
class PegasusSinusoidalPositionalEmbedding:    def __init__(self, num_positions: int, embedding_dim: int, padding_idx: Optional[int] = None):
        super().__init__(num_positions, embedding_dim)
        self.weight = self._init_weight(self.weight)