MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / DumpGraph

Function DumpGraph

tensorflow/core/common_runtime/function.cc:858–867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856}
857
858void 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
869void OptimizeGraph(FunctionLibraryRuntime* lib, std::unique_ptr<Graph>* g,
870 const GraphOptimizer::Options& graph_optimizer_options) {

Callers 5

ConstantFoldFunction · 0.85
OptimizeMethod · 0.85
RunPassMethod · 0.85
RunPassMethod · 0.85

Calls 4

num_edgesMethod · 0.80
DebugStringFunction · 0.70
SplitFunction · 0.50
num_nodesMethod · 0.45

Tested by

no test coverage detected