MCPcopy Create free account
hub / github.com/pytorch/executorch / instance_predicate

Function instance_predicate

devtools/intermediate_output_tap/_selectors.py:160–164  ·  view source on GitHub ↗
(entry: object)

Source from the content-addressed store, hash-verified

158 pats = tuple(patterns)
159
160 def instance_predicate(entry: object) -> bool:
161 path = _instance_path(entry)
162 if path is None:
163 return False
164 return any(fnmatch.fnmatchcase(path, p) for p in pats)
165
166 return _select_by_module_instance(instance_predicate, output_only)
167

Callers 1

matching_instance_idsFunction · 0.85

Calls 2

_instance_pathFunction · 0.85
_bare_class_nameFunction · 0.85

Tested by

no test coverage detected