MCPcopy Create free account
hub / github.com/apache/tvm / _updater

Function _updater

python/tvm/ir/json_compact.py:54–66  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

52 """
53
54 def _updater(data):
55 assert get_version(data).startswith(from_ver)
56 nodes = data["nodes"]
57 for idx, item in enumerate(nodes):
58 f = node_map.get(item["type"], None)
59 if isinstance(f, list):
60 for fpass in f:
61 item = fpass(item, nodes)
62 elif f:
63 item = f(item, nodes)
64 nodes[idx] = item
65 data["metadata"]["tvm_version"] = to_ver
66 return data
67
68 return _updater
69

Callers

nothing calls this directly

Calls 3

get_versionFunction · 0.85
fFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…