class_docstr: PreTransformerConv
docstr: Init Linear with less scale
docstr_tok: ["Init","Linear","with","less","scale"]
code: def linear(self, input_size, hidden_size, beta=0.1):
      """Init Linear with less scale"""
      fan_in = input_size
      bias_bound = 1.0 / math.sqrt(fan_in) * beta
      fc_bias_attr = paddle.ParamAttr(
          initializer=nn.initializer.Uniform(
              low=-bias_bound, high=bias_bound
          )
      )
  
      negative_slope = math.sqrt(5)
      gain = math.sqrt(2.0 / (1 + negative_slope**2))
      std = gain / math.sqrt(fan_in)
      weight_bound = math.sqrt(3.0) * std
      weight_bound = weight_bound * beta
      fc_w_attr = paddle.ParamAttr(
          initializer=nn.initializer.Uniform(
              low=-weight_bound, high=weight_bound
          )
      )
      return nn.Linear(
          input_size,
          hidden_size,
          weight_attr=fc_w_attr,
          bias_attr=fc_bias_attr,
      )
  
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 2 for calling the PreTransformerConv obj's underlying member method code with example usage: obj.linear(input_size, hidden_size, beta) and returns: nn