We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfcca59 commit 4a769c1Copy full SHA for 4a769c1
python/tvm/meta_schedule/database/database.py
@@ -47,12 +47,13 @@ def __init__(self, mod: IRModule) -> None:
47
)
48
49
def as_json(self) -> Any:
50
- """Export the workload to a JSON string.
+ """Export the workload to JSON as a python object.
51
52
Returns
53
-------
54
- json_str : str
55
- The JSON string exported.
+ json : Any
+ The JSON serialized as a python object (e.g. a Dict or List).
56
+ Use json.dumps() to get the associated json string.
57
"""
58
return _json_de_tvm(_ffi_api.WorkloadAsJSON(self)) # type: ignore # pylint: disable=no-member
59
0 commit comments