Skip to content

Commit f7275f9

Browse files
authored
Some docstring fixes. (apache#7367)
1 parent ef032b3 commit f7275f9

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

python/tvm/contrib/graph_runtime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ class GraphModule(object):
141141
lib = relay.build(...)
142142
lib.export_library("compiled_lib.so")
143143
# load it back as a runtime
144-
lib:tvm.runtime.Module = tvm.runtime.load_module("compiled_lib.so")
144+
lib: tvm.runtime.Module = tvm.runtime.load_module("compiled_lib.so")
145145
# Call the library factory function for default and create
146146
# a new runtime.Module, wrap with graph module.
147147
gmod = graph_runtime.GraphModule(lib["default"](ctx))
148-
# use the gmod
148+
# use the graph module.
149149
gmod.set_input("x", data)
150150
gmod.run()
151151
"""

python/tvm/relay/build_module.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,8 @@ def build(self, mod, target=None, target_host=None, params=None):
110110
111111
Returns
112112
-------
113-
graph_json : str
114-
The json string that can be accepted by graph runtime.
115-
116-
mod : tvm.Module
117-
The module containing necessary libraries.
118-
119-
params : dict
120-
The parameters of the final graph.
113+
factory_module : tvm.relay.backend.graph_runtime_factory.GraphRuntimeFactoryModule
114+
The runtime factory for the TVM graph runtime.
121115
"""
122116
target = _update_target(target)
123117

0 commit comments

Comments
 (0)