Skip to content

Commit 4a769c1

Browse files
correct doc (#11439)
1 parent cfcca59 commit 4a769c1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

python/tvm/meta_schedule/database/database.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@ def __init__(self, mod: IRModule) -> None:
4747
)
4848

4949
def as_json(self) -> Any:
50-
"""Export the workload to a JSON string.
50+
"""Export the workload to JSON as a python object.
5151
5252
Returns
5353
-------
54-
json_str : str
55-
The JSON string exported.
54+
json : Any
55+
The JSON serialized as a python object (e.g. a Dict or List).
56+
Use json.dumps() to get the associated json string.
5657
"""
5758
return _json_de_tvm(_ffi_api.WorkloadAsJSON(self)) # type: ignore # pylint: disable=no-member
5859

0 commit comments

Comments
 (0)