class_docstr: This code is based on
  https://github.com/facebookresearch/detr/blob/main/models/detr.py
class_docstr_tok: ["This","code","is","based","on","https",":","\/\/github.com\/facebookresearch\/detr\/blob\/main\/models\/detr.py"]
code: def __init__(self, input_dim, hidden_dim, output_dim, num_layers):
      super().__init__()
      self.num_layers = num_layers
      h = [hidden_dim] * (num_layers - 1)
      self.layers = nn.LayerList(
          nn.Linear(n, k)
          for n, k in zip([input_dim] + h, h + [output_dim])
      )
  
      self._reset_parameters()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from ppdet.core.workspace import register
  import pycocotools.mask
  from ..initializer import linear_init_, constant_
  from ..transformers.utils import inverse_sigmoid
label_desc: Use image node_id 1 to create a new MLP object from inherited base classes: nn with example: obj = MLP(input_dim, hidden_dim, output_dim, num_layers)