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

Function TF_GraphDebugString

tensorflow/c/c_api_experimental.cc:156–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156const char* TF_GraphDebugString(TF_Graph* graph, size_t* len) {
157 tensorflow::mutex_lock c(graph->mu);
158 const auto& debug_str = graph->graph.ToGraphDefDebug().DebugString();
159 *len = debug_str.size();
160 char* ret = static_cast<char*>(malloc(*len + 1));
161 memcpy(ret, debug_str.c_str(), *len + 1);
162 return ret;
163}
164
165char* TF_FunctionDebugString(TF_Function* func, size_t* len) {
166 const auto& debug_str = DebugString(func->fdef);

Callers

nothing calls this directly

Calls 4

ToGraphDefDebugMethod · 0.80
c_strMethod · 0.80
DebugStringMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected