src/transformers/models/roformer/modeling_tf_roformer.py/TFRoFormerSinusoidalPositionalEmbedding/__init__
class TFRoFormerSinusoidalPositionalEmbedding:    def __init__(self, num_positions: int, embedding_dim: int, **kwargs):
        super().__init__(**kwargs)

        if embedding_dim % 2 != 0:
            raise NotImplementedError(f"odd embedding_dim {embedding_dim} not supported")

        self.embedding_dim = embedding_dim
        self.num_positions = num_positions