docstr: Differentiable quantization function
docstr_tok: ["Differentiable","quantization","function"]
code: def quantize(cls, base, itype=torch.int8, scale=None):
      """Differentiable quantization function"""
      return Quantizer.apply(base, itype, scale)
  
imports: from dataclasses import dataclass
  from typing import Optional
  import torch
  from torch.autograd import Function
  from torch.utils import _pytree
label_desc: Use image node_id 4 for calling the QTensor obj's underlying member method code with example usage: obj.quantize(cls, base, itype, scale) and returns: Quantizer