code: def __init__(self):
      super(PACT, self).__init__()
      alpha_attr = paddle.ParamAttr(
          name=self.full_name() + ".pact",
          initializer=paddle.nn.initializer.Constant(value=20),
          learning_rate=1.0,
          regularizer=paddle.regularizer.L2Decay(2e-5),
      )
  
      self.alpha = self.create_parameter(
          shape=[1], attr=alpha_attr, dtype="float32"
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import sys
  import yaml
  import paddle
  import paddle.distributed
  from ppocr.data import build_dataloader, set_signal_handlers
  from ppocr.modeling.architectures import build_model
  from ppocr.losses import build_loss
  from ppocr.optimizer import build_optimizer
  from ppocr.postprocess import build_post_process
  from ppocr.metrics import build_metric
  from ppocr.utils.save_load import load_model
  import tools.program
  import paddleslim
  from paddleslim.dygraph.quant import QAT
  import numpy
label_desc: Use image node_id 1 to create a new PACT object from inherited base classes: paddle.nn with example: obj = PACT()