src/transformers/models/table_transformer/modeling_table_transformer.py/TableTransformerSinePositionEmbedding/__init__
class TableTransformerSinePositionEmbedding:    def __init__(self, embedding_dim=64, temperature=10000, normalize=False, scale=None):
        super().__init__()
        self.embedding_dim = embedding_dim
        self.temperature = temperature
        self.normalize = normalize
        if scale is not None and normalize is False:
            raise ValueError("normalize should be True if scale is passed")
        if scale is None:
            scale = 2 * math.pi
        self.scale = scale