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

Function get_while_nodes

exir/memory_planning.py:1175–1178  ·  view source on GitHub ↗
(graph_module: torch.fx.GraphModule)

Source from the content-addressed store, hash-verified

1173
1174
1175def get_while_nodes(graph_module: torch.fx.GraphModule) -> Iterable[Node]:
1176 for nd in graph_module.graph.nodes:
1177 if nd.target is exir_while:
1178 yield nd
1179
1180
1181def get_map_nodes(graph_module: torch.fx.GraphModule) -> Iterable[Node]:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected