tvm_ffi.serialization.from_json_graph_str

tvm_ffi.serialization.from_json_graph_str#

tvm_ffi.serialization.from_json_graph_str(json_str)[source]#

Load an object from a JSON graph string.

The JSON graph string is produced by to_json_graph_str() and can be converted back into the corresponding FFI-backed objects.

Parameters:

json_str (str) – The JSON graph string to load.

Return type:

Any

Returns:

obj – The loaded object.