class_docstr: EncoderLayer
class_docstr_tok: ["EncoderLayer"]
code: def forward(self, enc_input, attn_bias):
      attn_output = self.self_attn(
          self.preprocesser1(enc_input), None, None, attn_bias
      )
      attn_output = self.postprocesser1(attn_output, enc_input)
      ffn_output = self.ffn(self.preprocesser2(attn_output))
      ffn_output = self.postprocesser2(ffn_output, attn_output)
      return ffn_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 EncoderLayer obj's underlying member method code with example usage: obj.forward(enc_input, attn_bias) and returns: ffn_output