class_docstr: encoder
class_docstr_tok: ["encoder"]
code: def forward(self, enc_input, attn_bias):
      for encoder_layer in self.encoder_layers:
          enc_output = encoder_layer(enc_input, attn_bias)
          enc_input = enc_output
      enc_output = self.processer(enc_output)
      return enc_output
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import paddle
  from paddle import ParamAttr, nn
  from paddle import nn, ParamAttr
  from paddle.nn import functional
  import numpy
label_desc: Use image node_id 2 for calling the Encoder obj's underlying member method code with example usage: obj.forward(enc_input, attn_bias) and returns: enc_output