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

Function _is_submodule_input

backends/arm/process_node.py:225–233  ·  view source on GitHub ↗

Determines whether 'node' is an input to a submodule of 'containing_graph_module'.

(
    node: torch.fx.Node, containing_graph_module: torch.fx.GraphModule
)

Source from the content-addressed store, hash-verified

223
224
225def _is_submodule_input(
226 node: torch.fx.Node, containing_graph_module: torch.fx.GraphModule
227) -> bool:
228 """Determines whether 'node' is an input to a submodule of
229 'containing_graph_module'.
230 """
231 if node.op != "placeholder":
232 return False
233 return node.meta.get("is_input", False)
234
235
236def process_placeholder(

Callers 1

process_placeholderFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected