code: def __init__(self, in_features, out_features, alpha=1.0, beta=1.0):
      super().__init__()
      self.in_features = in_features
      self.out_features = out_features
  
      self.register_buffer(
          "weight",
          torch.randint(
              -127,
              127,
              (self.out_features, self.in_features),
              dtype=torch.int8,
              requires_grad=False,
          ),
      )
      self.register_buffer(
          "bias",
          torch.zeros(
              (1, self.out_features),
              dtype=torch.float32,
              requires_grad=False,
          ),
      )
      self.register_buffer("a", torch.tensor(alpha))
  
file_path: colossalai/colossalai/inference/quant/smoothquant/models/linear.py
imports: import torch
label_desc: Use image node_id 1 to create a new W8A8BFP32OFP32Linear object from inherited base classes: torch.nn with example: obj = W8A8BFP32OFP32Linear(in_features, out_features, alpha, beta)