class_docstr: Wrapper runtime module.
  
  This is a thin wrapper of the underlying TVM module.
  you can also directly call set_input, run, and get_output
  of underlying module functions
  
  Parameters
  ----------
  module : tvm.runtime.Module
      The internal tvm module that holds the actual graph functions.
  
  Attributes
  ----------
  module : tvm.runtime.Module
      The internal tvm module that holds the actual graph functions.
  
  Examples
  --------
  
  .. code-block:: python
  
      import tvm
      from tvm import relay
      from tvm.contrib import graph_executor
  
      # build the library using graph executor
      lib = relay.build(...)
      lib.export_library("compiled_lib.so")
      # load it back as a runtime
      lib: tvm.runtime.Module = tvm.runtime.load_module("compiled_lib.so")
      # Call the library factory function for default and create
      # a new runtime.Module, wrap with graph module.
      gmod = graph_executor.GraphModule(lib["default"](dev))
      # use the graph module.
      gmod.set_input("x", data)
      gmod.run()
class_docstr_tok: ["Wrapper","runtime","module",".","This","is","a","thin","wrapper","of","the","underlying","TVM","module",".","you","can","also","directly","call","set_input",",","run",",","and","get_output","of","underlying","module","functions","Parameters","--","--","--","--","--","module",":","tvm.runtime.Module","The","internal","tvm","module","that","holds","the","actual","graph","functions",".","Attributes","--","--","--","--","--","module",":","tvm.runtime.Module","The","internal","tvm","module","that","holds","the","actual","graph","functions",".","Examples","--","--","--","--","..","code-block",":",":","python","import","tvm","from","tvm","import","relay","from","tvm.contrib","import","graph_executor","#","build","the","library","using","graph","executor","lib","=","relay.build","(","...",")","lib.export_library","(","``","compiled_lib.so","''",")","#","load","it","back","as","a","runtime","lib",":","tvm.runtime.Module","=","tvm.runtime.load_module","(","``","compiled_lib.so","''",")","#","Call","the","library","factory","function","for","default","and","create","#","a","new","runtime.Module",",","wrap","with","graph","module",".","gmod","=","graph_executor.GraphModule","(","lib","[","``","default","''","]","(","dev",")",")","#","use","the","graph","module",".","gmod.set_input","(","``","x","''",",","data",")","gmod.run","(",")"]
docstr: Get index-th output to out
  
  Parameters
  ----------
  index : int
      The output index
  
  out : NDArray
      The output array container
docstr_tok: ["Get","index-th","output","to","out","Parameters","--","--","--","--","--","index",":","int","The","output","index","out",":","NDArray","The","output","array","container"]
code: def get_output(self, index, out=None):
      """Get index-th output to out
  
      Parameters
      ----------
      index : int
          The output index
  
      out : NDArray
          The output array container
      """
      if out:
          self._get_output(index, out)
          return out
  
      return self._get_output(index)
  
imports: import numpy
  import tvm._ffi
  from tvm.rpc import _ffi_api
  from tvm.rpc import base
  from tvm._ffi.base import string_types
  from tvm._ffi.runtime_ctypes import Device
label_desc: Use image node_id 11 for calling the GraphModule obj's underlying member method code with example usage: obj.get_output(index, out) and returns: self, out