src/transformers/models/data2vec/modeling_tf_data2vec_vision.py/TFData2VecVisionRelativePositionBias/__init__
class TFData2VecVisionRelativePositionBias:    def __init__(self, config: Data2VecVisionConfig, window_size: tuple, **kwargs) -> None:
        super().__init__(**kwargs)
        self.config = config

        self.window_size = window_size
        # +3 for cls_token_pos_len
        # window_size can be something like (14, 14)
        self.num_relative_distance = (2 * window_size[0] - 1) * (2 * window_size[1] - 1) + 3

        self.relative_position_index = self.get_position_index()