class_docstr: PalettizationCustomConversionBase is the base class for palettized model conversion. It implements the
  get_finalized_weights method which returns the palettized weights from ``LUT`` and ``indices``
  post-palettization.
docstr: The classes that base-class this class will have to implement the ``from_observed`` method to tell the
  convert method what type of a module to return through Pytorch's conversion.
docstr_tok: ["The","classes","that","base-class","this","class","will","have","to","implement","the","``","from_observed","``","method","to","tell","the","convert","method","what","type","of","a","module","to","return","through","Pytorch","'s","conversion","."]
code: def from_observed(cls, observed_module: _nn.Module):
      """
      The classes that base-class this class will have to implement the ``from_observed`` method to tell the
      convert method what type of a module to return through Pytorch's conversion.
      """
      raise NotImplementedError()
  
imports: import torch.nn
  import torch.nn.qat
  from ._supported_modules import Conv1d, Embedding, LayerNorm, MultiheadAttention
label_desc: Use image node_id 4 for calling the PalettizationCustomConversionBase obj's underlying member method code with example usage: obj.from_observed(cls, observed_module) without return types