class_docstr: PreTransformerConv
code: def __init__(self, hidden_size, act, use_degree_norm=False):
      super(PreTransformerConv, self).__init__()
      self.hidden_size = hidden_size
      self.nheads = 4
      self.head_dim = self.hidden_size // self.nheads
      self.act = act
      self.use_degree_norm = use_degree_norm
      self.q = self.linear(self.hidden_size, self.hidden_size)
      self.k = self.linear(self.hidden_size, self.hidden_size)
      self.v = self.linear(self.hidden_size, self.hidden_size)
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  import pgl
  import math
  from .None import model_util
label_desc: Use image node_id 1 to create a new PreTransformerConv object from inherited base classes: nn with example: obj = PreTransformerConv(hidden_size, act, use_degree_norm)