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

Function get_exported_graph

backends/mlx/test/test_pattern_utils.py:18–21  ·  view source on GitHub ↗

Export a module and return the graph with ATen ops.

(module, example_inputs)

Source from the content-addressed store, hash-verified

16
17
18def get_exported_graph(module, example_inputs):
19 """Export a module and return the graph with ATen ops."""
20 ep = export(module, example_inputs)
21 return ep.graph_module.graph
22
23
24def find_node_by_target(graph, target_name):

Calls 1

exportFunction · 0.90

Tested by

no test coverage detected