code: def replace_linear_weight_only_int8_per_channel(module):
      for name, child in module.named_children():
          if isinstance(child, nn.Linear):
              setattr(
                  module,
                  name,
                  WeightOnlyInt8Linear(
                      child.in_features, child.out_features
                  ),
              )
          else:
              replace_linear_weight_only_int8_per_channel(child)
  
imports: import time
  from pathlib import Path
  import torch
  import torch.nn
  import torch.nn.functional
  from sentencepiece import SentencePieceProcessor
  from model import Transformer
label_desc: Use image node_id 9 for calling a global function with example usage: replace_linear_weight_only_int8_per_channel(module) without return types