Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/tvm/ir/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def get(name):
return _ffi_api.EnvFuncGet(name)


def load_json(json_str):
def load_json(json_str) -> Object:
"""Load tvm object from json_str.

Parameters
Expand All @@ -141,7 +141,7 @@ def load_json(json_str):
return tvm.runtime._ffi_node_api.LoadJSON(json_str)


def save_json(node):
def save_json(node) -> str:
"""Save tvm object as json string.

Parameters
Expand Down