src/transformers/models/flava/modeling_flava.py/FlavaEncoder/__init__
class FlavaEncoder:    def __init__(self, config: FlavaConfig) -> None:
        super().__init__()
        self.config = config
        self.layer = nn.ModuleList([FlavaLayer(config) for _ in range(config.num_hidden_layers)])
        self.gradient_checkpointing = False