Skip to content

Commit 685d432

Browse files
lucifer1004junrushao
authored andcommitted
[skipci] Fix typo in docs/arch/index.rst (apache#15312)
Fix typo in docs/arch/index.rst
1 parent 3d7d643 commit 685d432

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/arch/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ The main goal of TVM's runtime is to provide a minimal API for loading and execu
152152
mod: tvm.runtime.Module = tvm.runtime.load_module("compiled_artifact.so")
153153
arr: tvm.runtime.NDArray = tvm.nd.array([1, 2, 3], device=tvm.cuda(0))
154154
fun: tvm.runtime.PackedFunc = mod["addone"]
155-
fun(a)
156-
print(a.numpy())
155+
fun(arr)
156+
print(arr.numpy())
157157
158158
159159
:py:class:`tvm.runtime.Module` encapsulates the result of compilation. A runtime.Module contains a GetFunction method to obtain PackedFuncs by name.

0 commit comments

Comments
 (0)