code: def __init__(
      self,
      hidden_size,
      intermediate_size,
      num_attention_heads,
      attention_probs_dropout_prob,
      fc_dropout_prob,
      act_fn="ReLU",
      output_attentions=False,
  ):
      super(BertFeedForward, self).__init__()
      self.fc1 = nn.Linear(hidden_size, intermediate_size)
      self.act_fn = eval(act_fn)
      self.fc2 = nn.Linear(intermediate_size, hidden_size)
      self.layernorm = nn.LayerNorm(hidden_size, epsilon=1e-8)
      self.dropout = nn.Dropout(fc_dropout_prob)
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle.nn import ReLU, Swish, GELU
  import math
  from ppdet.core.workspace import register
  from ..shape_spec import ShapeSpec
label_desc: Use image node_id 1 to create a new BertFeedForward object from inherited base classes: nn with example: obj = BertFeedForward(hidden_size, intermediate_size, num_attention_heads, attention_probs_dropout_prob, fc_dropout_prob, act_fn, output_attentions)