src/transformers/models/clipseg/modeling_clipseg.py/CLIPSegEncoder/__init__
class CLIPSegEncoder:    def __init__(self, config: CLIPSegConfig):
        super().__init__()
        self.config = config
        self.layers = nn.ModuleList([CLIPSegEncoderLayer(config) for _ in range(config.num_hidden_layers)])
        self.gradient_checkpointing = False