| 154 | } |
| 155 | |
| 156 | const 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 | |
| 165 | char* TF_FunctionDebugString(TF_Function* func, size_t* len) { |
| 166 | const auto& debug_str = DebugString(func->fdef); |
nothing calls this directly
no test coverage detected