Skip to content

Commit

Permalink
Some docstring fixes. (apache#7367)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdw-octoml authored and electriclilies committed Feb 18, 2021
1 parent 45231ed commit ecc90fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions python/tvm/contrib/graph_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ class GraphModule(object):
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")
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_runtime.GraphModule(lib["default"](ctx))
# use the gmod
# use the graph module.
gmod.set_input("x", data)
gmod.run()
"""
Expand Down
10 changes: 2 additions & 8 deletions python/tvm/relay/build_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,8 @@ def build(self, mod, target=None, target_host=None, params=None):
Returns
-------
graph_json : str
The json string that can be accepted by graph runtime.
mod : tvm.Module
The module containing necessary libraries.
params : dict
The parameters of the final graph.
factory_module : tvm.relay.backend.graph_runtime_factory.GraphRuntimeFactoryModule
The runtime factory for the TVM graph runtime.
"""
target = _update_target(target)

Expand Down

0 comments on commit ecc90fb

Please sign in to comment.