This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 4b183daa97 [skipci] Fix typo in docs/arch/index.rst (#15312)
4b183daa97 is described below
commit 4b183daa97f5bd3e9ff8f484bf97a5df8f0d6083
Author: Gabriel Wu <[email protected]>
AuthorDate: Wed Jul 19 02:05:52 2023 +0800
[skipci] Fix typo in docs/arch/index.rst (#15312)
Fix typo in docs/arch/index.rst
---
docs/arch/index.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/arch/index.rst b/docs/arch/index.rst
index 3957c60716..b84afeea28 100644
--- a/docs/arch/index.rst
+++ b/docs/arch/index.rst
@@ -152,8 +152,8 @@ The main goal of TVM's runtime is to provide a minimal API
for loading and execu
mod: tvm.runtime.Module = tvm.runtime.load_module("compiled_artifact.so")
arr: tvm.runtime.NDArray = tvm.nd.array([1, 2, 3], device=tvm.cuda(0))
fun: tvm.runtime.PackedFunc = mod["addone"]
- fun(a)
- print(a.numpy())
+ fun(arr)
+ print(arr.numpy())
:py:class:`tvm.runtime.Module` encapsulates the result of compilation. A
runtime.Module contains a GetFunction method to obtain PackedFuncs by name.