class_docstr: Multilayer perceptron.
class_docstr_tok: ["Multilayer","perceptron","."]
code: def __init__(
      self,
      in_features,
      hidden_features=None,
      out_features=None,
      act_layer=nn.GELU,
      drop=0.0,
  ):
      super().__init__()
      out_features = out_features or in_features
      hidden_features = hidden_features or in_features
      self.fc1 = nn.Conv2D(in_features, hidden_features, 1)
      self.dwconv = get_depthwise_conv(hidden_features)
      self.act = act_layer()
      self.fc2 = nn.Conv2D(hidden_features, out_features, 1)
      self.drop = nn.Dropout(drop)
  
imports: import math
  import numpy
  import paddle
  import paddle.nn
  from paddle.nn import Conv2D
  from paddle.nn.initializer import Assign, Normal
  from paddleseg.cvlibs import manager
  from paddleseg.models.backbones.transformer_utils import DropPath, ones_, to_2tuple, zeros_
  from paddleseg.models.layers import SyncBatchNorm
  from paddleseg.utils import utils
label_desc: Use image node_id 1 to create a new Mlp object from inherited base classes: nn with example: obj = Mlp(in_features, hidden_features, out_features, act_layer, drop)