modeci_mdf.interfaces.onnx.importer.find_subgraphs

modeci_mdf.interfaces.onnx.importer.find_subgraphs(graph: GraphProto, graph_dict: Optional[Dict[str, GraphProto]] = None) Dict[str, GraphProto][source]

Recurse through an ONNX graph and find all subgraphs.

Parameters:
  • graph – The graph to search.

  • graph_list – Insert graphs we find into this dict. Use the parent node name as a key. If None, intitialize to empty dict.

Returns:

All the subgraphs in the for the graph.