src/transformers/models/donut/modeling_donut_swin.py/DonutSwinAttention/__init__
class DonutSwinAttention:    def __init__(self, config, dim, num_heads, window_size):
        super().__init__()
        self.self = DonutSwinSelfAttention(config, dim, num_heads, window_size)
        self.output = DonutSwinSelfOutput(config, dim)
        self.pruned_heads = set()