class_docstr: Like `nn.Sequential`, but with ModuleList semantics, and can access module input
class_docstr_tok: ["Like","`","nn.Sequential","`",",","but","with","ModuleList","semantics",",","and","can","access","module","input"]
code: def forward(self, x):
      res = x
      for l in self.layers:
          if isinstance(l, MergeLayer):
              l.orig = x
          nres = l(res)
          # We have to remove res.orig to avoid hanging refs and therefore memory leaks
          # l.orig = None
          res = nres
      return res
  
imports: import numpy
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle.vision.models import resnet101
  from .None import utils
label_desc: Use image node_id 2 for calling the SequentialEx obj's underlying member method code with example usage: obj.forward(x) and returns: res