code: def get_para_bias_attr(l2_decay, k):
      regularizer = paddle.regularizer.L2Decay(l2_decay)
      stdv = 1.0 / math.sqrt(k * 1.0)
      initializer = nn.initializer.Uniform(-stdv, stdv)
      weight_attr = ParamAttr(
          regularizer=regularizer, initializer=initializer
      )
      bias_attr = ParamAttr(
          regularizer=regularizer, initializer=initializer
      )
      return [weight_attr, bias_attr]
  
file_path: PaddleOCR/ppocr/modeling/heads/rec_ctc_head.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import paddle
  from paddle import ParamAttr, nn
  from paddle.nn import functional
label_desc: Use image node_id 1 for calling a global function with example usage: get_para_bias_attr(l2_decay, k) and returns: list