You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by an...@apache.org on 2022/05/26 21:07:25 UTC
[tvm] branch main updated: correct doc (#11439)
This is an automated email from the ASF dual-hosted git repository.
andrewzhaoluo 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 4a769c1da3 correct doc (#11439)
4a769c1da3 is described below
commit 4a769c1da3fef695bb865a1ade91236bbd28f37a
Author: AndrewZhaoLuo <an...@gmail.com>
AuthorDate: Thu May 26 14:07:20 2022 -0700
correct doc (#11439)
---
python/tvm/meta_schedule/database/database.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/python/tvm/meta_schedule/database/database.py b/python/tvm/meta_schedule/database/database.py
index f8662e70bc..314bf434c4 100644
--- a/python/tvm/meta_schedule/database/database.py
+++ b/python/tvm/meta_schedule/database/database.py
@@ -47,12 +47,13 @@ class Workload(Object):
)
def as_json(self) -> Any:
- """Export the workload to a JSON string.
+ """Export the workload to JSON as a python object.
Returns
-------
- json_str : str
- The JSON string exported.
+ json : Any
+ The JSON serialized as a python object (e.g. a Dict or List).
+ Use json.dumps() to get the associated json string.
"""
return _json_de_tvm(_ffi_api.WorkloadAsJSON(self)) # type: ignore # pylint: disable=no-member