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

Function _to_tensor

python/tvm/runtime/params.py:23–32  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

21
22
23def _to_tensor(params):
24 transformed = {}
25
26 for k, v in params.items():
27 if not isinstance(v, Tensor):
28 transformed[k] = tensor(v)
29 else:
30 transformed[k] = v
31
32 return transformed
33
34
35def save_param_dict(params):

Callers 2

save_param_dictFunction · 0.85
save_param_dict_to_fileFunction · 0.85

Calls 2

tensorFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…