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

Function walk

ci/scripts/github/github_tvmbot.py:178–188  ·  view source on GitHub ↗

Recursively call 'visitor' on all the children of a dictionary

(obj, visitor, parent_key=None)

Source from the content-addressed store, hash-verified

176
177
178def walk(obj, visitor, parent_key=None):
179 """
180 Recursively call 'visitor' on all the children of a dictionary
181 """
182 visitor(obj, parent_key)
183 if isinstance(obj, dict):
184 for k, v in obj.items():
185 walk(v, visitor, parent_key=k)
186 elif isinstance(obj, list):
187 for v in obj:
188 walk(v, visitor)
189
190
191class PR:

Callers 1

__init__Method · 0.85

Calls 2

visitorFunction · 0.50
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…