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

Function _instance_path

devtools/intermediate_output_tap/_selectors.py:71–75  ·  view source on GitHub ↗

Extract the qualified-path string from an `nn_module_stack` entry.

(entry: object)

Source from the content-addressed store, hash-verified

69
70
71def _instance_path(entry: object) -> str | None:
72 """Extract the qualified-path string from an `nn_module_stack` entry."""
73 if isinstance(entry, tuple):
74 return entry[0] if entry else None
75 return str(entry) if entry is not None else None
76
77
78def _bare_class_name(mod_type: object) -> str:

Callers 1

instance_predicateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected