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

Method get_dot_graph

backends/qualcomm/debugger/utils.py:45–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 self.dfs_add_edges(input_node_name, visited, node_list)
44
45 def get_dot_graph(self):
46 visited = set()
47 node_list = {}
48 excel_data = []
49
50 self.get_node(node_list)
51 self.add_node(node_list, excel_data)
52 self.to_excel(excel_data)
53
54 # add edge
55 for node_name, _ in node_list.items():
56 if node_name not in visited:
57 self.dfs_add_edges(node_name, visited, node_list)
58
59 return self.dot
60
61 def get_node(self, node_list):
62 for py_op_wrapper in self.py_op_wrapper_list:

Callers 2

drawMethod · 0.95
draw_graphFunction · 0.80

Calls 5

get_nodeMethod · 0.95
add_nodeMethod · 0.95
to_excelMethod · 0.95
dfs_add_edgesMethod · 0.95
itemsMethod · 0.80

Tested by

no test coverage detected