class_docstr: Common interface for pipeline executor factory modules.
  
  Parameters
  ----------
  pipeline_mods : List[GraphExecutorFactoryModule]
      List of GraphExecutorFactoryModule.
  
  mod_config : Dict[int, Dict[str, Any]]
      Modules dependency configuration information.
class_docstr_tok: ["Common","interface","for","pipeline","executor","factory","modules",".","Parameters","--","--","--","--","--","pipeline_mods",":","List","[","GraphExecutorFactoryModule","]","List","of","GraphExecutorFactoryModule",".","mod_config",":","Dict","[","int",",","Dict","[","str",",","Any","]","]","Modules","dependency","configuration","information","."]
docstr: Create graph_executor list and return configuration as a json string.
  
  Parameters
  ----------
  pipeline_mods : List[GraphExecutorFactoryModule]
    List of GraphExecutorFactoryModule
  
  mod_config : Dict[str, Any]
      Modules dependency configuration information.
  
  Returns
  -------
  mods : List[Module]
      The Module list.
  
  mod_config : str
      The Modudle configuration.
docstr_tok: ["Create","graph_executor","list","and","return","configuration","as","a","json","string",".","Parameters","--","--","--","--","--","pipeline_mods",":","List","[","GraphExecutorFactoryModule","]","List","of","GraphExecutorFactoryModule","mod_config",":","Dict","[","str",",","Any","]","Modules","dependency","configuration","information",".","Returns","--","--","--","-","mods",":","List","[","Module","]","The","Module","list",".","mod_config",":","str","The","Modudle","configuration","."]
code: def graph_executor_create(self, pipeline_mods, mod_config):
      """Create graph_executor list and return configuration as a json string.
  
      Parameters
      ----------
      pipeline_mods : List[GraphExecutorFactoryModule]
        List of GraphExecutorFactoryModule
  
      mod_config : Dict[str, Any]
          Modules dependency configuration information.
  
      Returns
      -------
      mods : List[Module]
          The Module list.
  
      mod_config : str
          The Modudle configuration.
      """
      # Should store modules in the list named 'mods' in index order.
      mods = [None for _ in range(len(pipeline_mods))]
      for lib_index in pipeline_mods:
          pipeline_lib = pipeline_mods[lib_index]["lib"]
          dev = pipeline_mods[lib_index]["dev"]
          lib = graph_executor.GraphModule(pipeline_lib["default"](dev))
          # Return a module list sorted by lib_index.
          mods[lib_index] = lib.module
  
      return mods, json.dumps(mod_config)
  
imports: import json
  import os
  import time
  from tvm import runtime
  from tvm._ffi import get_global_func
  from tvm.contrib import graph_executor
label_desc: Use image node_id 3 for calling the PipelineExecutorFactoryModule obj's underlying member method code with example usage: obj.graph_executor_create(pipeline_mods, mod_config) and returns: mods,  json