class_docstr: Autoformer encoder
class_docstr_tok: ["Autoformer","encoder"]
code: def __init__(self, attn_layers, conv_layers=None, norm_layer=None):
      super(Encoder, self).__init__()
      self.attn_layers = nn.ModuleList(attn_layers)
      self.conv_layers = (
          nn.ModuleList(conv_layers)
          if conv_layers is not None
          else None
      )
      self.norm = norm_layer
  
file_path: merlion/merlion/models/utils/nn_modules/enc_dec_autoformer.py
imports: from merlion.models.utils.nn_modules.blocks import SeriesDecomposeBlock, MovingAverageBlock
label_desc: Use image node_id 1 to create a new Encoder object from inherited base classes: nn with example: obj = Encoder(attn_layers, conv_layers, norm_layer)