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
  
imports: import torch
  import torch.nn
  import torch.nn.functional
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)