| 284 | } |
| 285 | |
| 286 | GraphMatcher::GraphMatcher(const GraphDef& graph_def) { |
| 287 | SortByExecutionOrder(graph_def, &graph_def_).IgnoreError(); |
| 288 | MapNamesToNodes(graph_def_, &node_map_); |
| 289 | } |
| 290 | |
| 291 | Status GraphMatcher::GetOpTypeMatches(const OpTypePattern& pattern, |
| 292 | std::vector<NodeMatch>* matches) { |