MCPcopy Index your code
hub / github.com/apache/tvm / save_param_dict_to_file

Function save_param_dict_to_file

python/tvm/runtime/params.py:66–77  ·  view source on GitHub ↗

Save parameter dictionary to file. Parameters ---------- params : dict of str to Tensor The parameter dictionary. path: str The path to the parameter file.

(params, path)

Source from the content-addressed store, hash-verified

64
65
66def save_param_dict_to_file(params, path):
67 """Save parameter dictionary to file.
68
69 Parameters
70 ----------
71 params : dict of str to Tensor
72 The parameter dictionary.
73
74 path: str
75 The path to the parameter file.
76 """
77 return _ffi_api.SaveParamsToFile(_to_tensor(params), path)
78
79
80def load_param_dict(param_bytes):

Callers

nothing calls this directly

Calls 1

_to_tensorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…