| 856 | } |
| 857 | |
| 858 | void DumpGraph(StringPiece label, const Graph* g) { |
| 859 | // TODO(zhifengc): Change Graph to record #nodes. |
| 860 | VLOG(2) << "Graph " << label << " #nodes " << g->num_nodes() << " #edges " |
| 861 | << g->num_edges(); |
| 862 | if (VLOG_IS_ON(5)) { |
| 863 | for (const auto& line : str_util::Split(DebugString(g), '\n')) { |
| 864 | VLOG(5) << "|| " << line; |
| 865 | } |
| 866 | } |
| 867 | } |
| 868 | |
| 869 | void OptimizeGraph(FunctionLibraryRuntime* lib, std::unique_ptr<Graph>* g, |
| 870 | const GraphOptimizer::Options& graph_optimizer_options) { |
no test coverage detected