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

Method GraphDebugString

tensorflow/c/while_loop_test.cc:115–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 }
114
115 string GraphDebugString() const {
116 TF_Buffer* buf = TF_NewBuffer();
117 TF_GraphToGraphDef(graph_, buf, s_);
118 DCHECK_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
119 GraphDef def;
120 bool success = def.ParseFromArray(buf->data, buf->length);
121 DCHECK(success);
122 TF_DeleteBuffer(buf);
123 return def.DebugString();
124 }
125
126 TF_Status* s_;
127 TF_Graph* graph_;

Callers

nothing calls this directly

Calls 6

TF_NewBufferFunction · 0.85
TF_GraphToGraphDefFunction · 0.85
TF_GetCodeFunction · 0.85
TF_MessageFunction · 0.85
TF_DeleteBufferFunction · 0.85
DebugStringMethod · 0.45

Tested by

no test coverage detected