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

Method get_submodule

exir/passes/__init__.py:330–332  ·  view source on GitHub ↗
(node: torch.fx.Node)

Source from the content-addressed store, hash-verified

328 missing_out_vars: Set[str] = set()
329
330 def get_submodule(node: torch.fx.Node) -> torch.fx.GraphModule:
331 assert node.op == "get_attr"
332 return getattr(graph_module, node.target)
333
334 for node in graph_module.graph.nodes:
335 if node.op != "call_function":

Callers 15

_maybe_get_attr_valueMethod · 0.80
_get_submoduleFunction · 0.80
_normalize_nodeMethod · 0.80
is_submodule_nodeFunction · 0.80
_get_node_targetFunction · 0.80
_is_input_large_scalarFunction · 0.80
skip_annotationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected