class MultiLayerPerceptron(nn.Sequential): def __init__(self, embed_size, dropout): super().__init__( nn.Linear(embed_size, embed_size * 4), nn.GELU(), nn.Linear(embed_size * 4, embed_size), nn.Dropout(p=dropout), ) # end def # end class