- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TF_GraphToGraphDef (0.15 sec)
-
tensorflow/c/while_loop_test.cc
DCHECK_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); params_->cond_output = {less_than, 0}; } string GraphDebugString() const { TF_Buffer* buf = TF_NewBuffer(); TF_GraphToGraphDef(graph_, buf, s_); DCHECK_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); GraphDef def; bool success = def.ParseFromArray(buf->data, buf->length); DCHECK(success); TF_DeleteBuffer(buf);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 11 06:05:56 UTC 2024 - 15.3K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
Neg(oper, graph, s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); ASSERT_TRUE(TF_GraphOperationByName(graph, "neg") != nullptr); // Export to a GraphDef. TF_Buffer* graph_def = TF_NewBuffer(); TF_GraphToGraphDef(graph, graph_def, s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); // Import it, with a prefix, in a fresh graph. TF_DeleteGraph(graph); graph = TF_NewGraph();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 96.9K bytes - Viewed (0) -
tensorflow/c/c_api.h
// `output_graph_def`'s underlying buffer will be freed when TF_DeleteBuffer() // is called. // // May fail on very large graphs in the future. TF_CAPI_EXPORT extern void TF_GraphToGraphDef(TF_Graph* graph, TF_Buffer* output_graph_def, TF_Status* status);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 26 21:08:15 UTC 2023 - 82.3K bytes - Viewed (0) -
tensorflow/c/c_api.cc
// to still check. if (node != nullptr) return ToOperation(node); *pos += 1; } // No more nodes. return nullptr; } void TF_GraphToGraphDef(TF_Graph* graph, TF_Buffer* output_graph_def, TF_Status* status) { GraphDef def; { mutex_lock l(graph->mu); graph->graph.ToGraphDef(&def); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 102.3K bytes - Viewed (0)