class_docstr: Mixin class for adding basic quantization logic to quantized modules
class_docstr_tok: ["Mixin","class","for","adding","basic","quantization","logic","to","quantized","modules"]
docstr: Args:
      value: An instance of :class:`QuantDescriptor <csrc.pytorch.pytorch_quantization.tensor_quant.QuantDescriptor>`
docstr_tok: ["Args",":","value",":","An","instance","of",":","class",":","`","QuantDescriptor","<","csrc.pytorch.pytorch_quantization.tensor_quant.QuantDescriptor",">","`"]
code: def set_default_quant_desc_weight(cls, value):
      """
      Args:
          value: An instance of :class:`QuantDescriptor <csrc.pytorch.pytorch_quantization.tensor_quant.QuantDescriptor>`
      """
      if not isinstance(value, QuantDescriptor):
          raise ValueError("{} is not an instance of QuantDescriptor!")
      cls.default_quant_desc_weight = copy.deepcopy(value)
  
file_path: lightseq/lightseq/csrc/pytorch/pytorch_quantization/nn/modules/_utils.py
imports: import copy
  import inspect
  import logging
  from torch import nn
  from csrc.pytorch.pytorch_quantization.nn import TensorQuantizer
  from csrc.pytorch.pytorch_quantization.tensor_quant import QuantDescriptor, QUANT_DESC_8BIT_PER_TENSOR
label_desc: Use image node_id 2 for calling the QuantMixin obj's underlying member method code with example usage: obj.set_default_quant_desc_weight(cls, value) without return types