class_docstr: Compose with two layers 
class_docstr_tok: ["Compose","with","two","layers"]
code: def __init__(self, d_model, d_inner, n_head, d_k, d_v, dropout=0.1):
      super(EncoderLayer, self).__init__()
      self.slf_attn = MultiHeadAttention(
          n_head, d_model, d_k, d_v, dropout=dropout
      )
      self.pos_ffn = PositionwiseFeedForward(
          d_model, d_inner, dropout=dropout
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from paddle import ParamAttr
  import paddle.nn
  import paddle.nn.functional
  from paddle.nn.initializer import Normal, XavierNormal
  import numpy
label_desc: Use image node_id 1 to create a new EncoderLayer object from inherited base classes: nn with example: obj = EncoderLayer(d_model, d_inner, n_head, d_k, d_v, dropout)