code: def __init__(self, n_dim=512, N_max_character=25, n_position=256):
      super(PP_layer, self).__init__()
      self.character_len = N_max_character
      self.f0_embedding = nn.Embedding(N_max_character, n_dim)
      self.w0 = nn.Linear(N_max_character, n_position)
      self.wv = nn.Linear(n_dim, n_dim)
      self.we = nn.Linear(n_dim, N_max_character)
      self.active = nn.Tanh()
      self.softmax = nn.Softmax(axis=2)
  
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 PP_layer object from inherited base classes: nn with example: obj = PP_layer(n_dim, N_max_character, n_position)