def METHOD_NAME(self, y):
    for linear in self.linears:
        y = self.activation(linear(y))
        if self.dropout_rate > 0:
            y = paddle.nn.functional.dropout(
                y, p=self.dropout_rate, training=self.training)
    return y