class_docstr: ernie block class 
class_docstr_tok: ["ernie","block","class"]
code: def __init__(self, cfg, name=None):
      super(ErnieBlock, self).__init__()
      d_model = cfg["hidden_size"]
      self.attn = AttentionLayer(
          cfg, name=append_name(name, "multi_head_att")
      )
      self.ln1 = _build_ln(d_model, name=append_name(name, "post_att"))
      self.ffn = PositionWiseFeedForwardLayer(
          cfg, name=append_name(name, "ffn")
      )
      self.ln2 = _build_ln(d_model, name=append_name(name, "post_ffn"))
      prob = cfg.get(
          "intermediate_dropout_prob", cfg["hidden_dropout_prob"]
      )
      self.dropout = nn.Dropout(p=prob)
  
imports: import logging
  import re
  import time
  import paddle
  from paddle import nn
  from paddle.nn import functional
label_desc: Use image node_id 1 to create a new ErnieBlock object from inherited base classes: nn with example: obj = ErnieBlock(cfg, name)