src/transformers/models/ernie_m/modeling_ernie_m.py/ErnieMEncoder/__init__
class ErnieMEncoder:    def __init__(self, config):
        super().__init__()
        self.config = config
        self.layers = nn.ModuleList([ErnieMEncoderLayer(config) for _ in range(config.num_hidden_layers)])