class_docstr: MLP as used in Vision Transformer, MLP-Mixer and related networks.
class_docstr_tok: ["MLP","as","used","in","Vision","Transformer",",","MLP-Mixer","and","related","networks","."]
code: def forward(self, x):
      x = self.fc1(x)
      x = self.act(x)
      x = self.drop1(x)
      x = self.fc2(x)
      x = self.drop2(x)
      return x
  
imports: import math
  import torch
  import torch.nn
  import torch.nn.functional
  from mmcv.cnn import build_activation_layer, build_norm_layer
  from mmcv.cnn.bricks import DropPath
  from mmengine.logging import MMLogger
  from mmengine.model import BaseModule
  from mmengine.runner.checkpoint import CheckpointLoader
  from mmdet.registry import MODELS
label_desc: Use image node_id 2 for calling the Mlp obj's underlying member method code with example usage: obj.forward(x) and returns: x