src/transformers/models/roformer/modeling_roformer.py/RoFormerSinusoidalPositionalEmbedding/__init__
class RoFormerSinusoidalPositionalEmbedding:    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)