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

Function DumpGraphToFile

tensorflow/core/util/dump_graph.cc:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138string DumpGraphToFile(const string& name, Graph const& graph,
139 const FunctionLibraryDefinition* flib_def,
140 const string& dirname) {
141 GraphDef graph_def;
142 graph.ToGraphDef(&graph_def);
143 if (flib_def) {
144 *graph_def.mutable_library() = flib_def->ToProto();
145 }
146 return DumpGraphDefToFile(name, graph_def, dirname);
147}
148
149string DumpFunctionDefToFile(const string& name, FunctionDef const& fdef,
150 const string& dirname) {

Callers 15

FunctionalizeControlFlowFunction · 0.85
RunMethod · 0.85
FunctionalizeLoopFunction · 0.85
CompileFunctionMethod · 0.85
CompileGraphMethod · 0.85
BuildIfNodeMethod · 0.85
RewriteAndPruneGraphFunction · 0.85
BuildFunctionDefMethod · 0.85
ReplaceFunctionDefMethod · 0.85
SplitIntoSubgraphsMethod · 0.85

Calls 3

DumpGraphDefToFileFunction · 0.85
ToGraphDefMethod · 0.45
ToProtoMethod · 0.45

Tested by 2

RunMethod · 0.68
TESTFunction · 0.68