class_docstr: This class, used with the prepare_n_shadows_model API, stores a list of :class:`torch.ao.quantization.QConfigMapping`s
  so that multiple QConfigs can be specified for each QConfig matching style.
  
  The user can specify QConfigs using the following methods (in increasing match priority):
  
      ``set_global`` : sets the global (default) QConfigs
  
      ``set_object_type`` : sets the QConfigs for a given module type, function, or method name
  
      ``set_module_name_regex`` : sets the QConfigs for modules matching the given regex string
  
      ``set_module_name`` : sets the QConfigs for modules matching the given module name
  
      ``set_module_name_object_type_order`` : sets the QConfigs for modules matching a combination
      of the given module name, object type, and the index at which the module appears
  
  Note: Usage of set methods is the same as in QConfigMapping except with a passed in list of QConfigs rather than a
  single QConfig.
  
  Example usage::
  
      qconfig_mapping = QConfigMultiMapping()
          .set_global([qconfig1, qconfig2])
          .set_object_type(torch.nn.Linear, [qconfig2, qconfig3])
          .set_object_type(torch.nn.ReLU, [qconfig1])
          .set_module_name_regex("foo.*bar.*conv[0-9]+", [qconfig2])
          .set_module_name_regex("foo.*", [qconfig1, qconfig2, qconfig3])
          .set_module_name("module1", [None])
          .set_module_name("module2", [qconfig2])
          .set_module_name_object_type_order("foo.bar", torch.nn.functional.linear, 0, [qconfig3])
class_docstr_tok: ["This","class",",","used","with","the","prepare_n_shadows_model","API",",","stores","a","list","of",":","class",":","`","torch.ao.quantization.QConfigMapping","`","s","so","that","multiple","QConfigs","can","be","specified","for","each","QConfig","matching","style",".","The","user","can","specify","QConfigs","using","the","following","methods","(","in","increasing","match","priority",")",":","``","set_global","``",":","sets","the","global","(","default",")","QConfigs","``","set_object_type","``",":","sets","the","QConfigs","for","a","given","module","type",",","function",",","or","method","name","``","set_module_name_regex","``",":","sets","the","QConfigs","for","modules","matching","the","given","regex","string","``","set_module_name","``",":","sets","the","QConfigs","for","modules","matching","the","given","module","name","``","set_module_name_object_type_order","``",":","sets","the","QConfigs","for","modules","matching","a","combination","of","the","given","module","name",",","object","type",",","and","the","index","at","which","the","module","appears","Note",":","Usage","of","set","methods","is","the","same","as","in","QConfigMapping","except","with","a","passed","in","list","of","QConfigs","rather","than","a","single","QConfig",".","Example","usage",":",":","qconfig_mapping","=","QConfigMultiMapping","(",")",".set_global","(","[","qconfig1",",","qconfig2","]",")",".set_object_type","(","torch.nn.Linear",",","[","qconfig2",",","qconfig3","]",")",".set_object_type","(","torch.nn.ReLU",",","[","qconfig1","]",")",".set_module_name_regex","(","``","foo.","*","bar",".","*","conv","[","0-9","]","+","''",",","[","qconfig2","]",")",".set_module_name_regex","(","``","foo",".","*","''",",","[","qconfig1",",","qconfig2",",","qconfig3","]",")",".set_module_name","(","``","module1","''",",","[","None","]",")",".set_module_name","(","``","module2","''",",","[","qconfig2","]",")",".set_module_name_object_type_order","(","``","foo.bar","''",",","torch.nn.functional.linear",",","0",",","[","qconfig3","]",")"]
docstr: Set module_name QConfigs
  see :func:`~torch.ao.quantization.QConfigMapping.set_module_name_object_type_order()` for more info
docstr_tok: ["Set","module_name","QConfigs","see",":","func",":","`","~torch.ao.quantization.QConfigMapping.set_module_name_object_type_order","(",")","`","for","more","info"]
code: def set_module_name_object_type_order(
      self,
      module_name: str,
      object_type: Callable,
      index: int,
      qconfig_list: List[QConfigAny],
  ) -> QConfigMultiMapping:
      """
      Set module_name QConfigs
      see :func:`~torch.ao.quantization.QConfigMapping.set_module_name_object_type_order()` for more info
      """
      self._insert_qconfig_list(
          "module_name_object_type_order_qconfigs",
          [module_name, object_type, index],
          qconfig_list,
      )
      return self
  
file_path: pytorch/torch/ao/ns/fx/qconfig_multi_mapping.py
imports: from __future__ import annotations
  import copy
  from typing import Any, Callable, Dict, List, Union
  import torch
  from torch.ao.quantization import QConfigMapping
  from torch.ao.quantization.qconfig_mapping import _QCONFIG_STYLE_ORDER
  from torch.ao.quantization.qconfig import QConfigAny
label_desc: Use image node_id 8 for calling the QConfigMultiMapping obj's underlying member method code with example usage: obj.set_module_name_object_type_order(module_name, object_type, index, qconfig_list) and returns: self