src/transformers/models/table_transformer/modeling_table_transformer.py/TableTransformerAttention/with_pos_embed
class TableTransformerAttention:    def with_pos_embed(self, tensor: torch.Tensor, position_embeddings: Optional[Tensor]):
        return tensor if position_embeddings is None else tensor + position_embeddings