src/transformers/models/deit/modeling_tf_deit.py/TFDeiTEncoder/__init__
class TFDeiTEncoder:    def __init__(self, config: DeiTConfig, **kwargs):
        super().__init__(**kwargs)

        self.layer = [TFDeiTLayer(config, name=f"layer_._{i}") for i in range(config.num_hidden_layers)]