ConvertCustomConfig
class torch.ao.quantization.fx.custom_config.ConvertCustomConfig
Custom configuration for "convert_fx()".
Example usage:
  convert_custom_config = ConvertCustomConfig()             .set_observed_to_quantized_mapping(ObservedCustomModule, QuantizedCustomModule)             .set_preserved_attributes(["attr1", "attr2"])

classmethod from_dict(convert_custom_config_dict)
  Create a "ConvertCustomConfig" from a dictionary with the
  following items:

     "observed_to_quantized_custom_module_class": a nested
     dictionary mapping from quantization mode to an inner mapping
     from observed module classes to quantized module classes,
     e.g.:: { "static": {FloatCustomModule: ObservedCustomModule},
     "dynamic": {FloatCustomModule: ObservedCustomModule},
     "weight_only": {FloatCustomModule: ObservedCustomModule} }
     "preserved_attributes": a list of attributes that persist
