- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for TF_GraphGetFunctions (0.09 seconds)
-
tensorflow/c/c_api_function_test.cc
EXPECT_EQ(TF_GraphNumFunctions(host_graph_), 1); EXPECT_EQ(TF_GraphGetFunctions(host_graph_, funcs, 0, s_), 0); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); EXPECT_EQ(TF_GraphGetFunctions(host_graph_, funcs, 1, s_), 1); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); AssertEqual(func0, funcs[0]); TF_DeleteFunction(funcs[0]); EXPECT_EQ(TF_GraphGetFunctions(host_graph_, funcs, 2, s_), 1);
Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Mon Nov 17 00:00:38 GMT 2025 - 63.6K bytes - Click Count (1) -
tensorflow/c/c_api_function.cc
status->status = g->graph.AddGradientDef(std::move(gdef)); } int TF_GraphNumFunctions(TF_Graph* g) { tensorflow::mutex_lock l(g->mu); return g->graph.flib_def().num_functions(); } int TF_GraphGetFunctions(TF_Graph* g, TF_Function** funcs, int max_func, TF_Status* status) { tensorflow::FunctionDefLibrary lib; { tensorflow::mutex_lock l(g->mu); lib = g->graph.flib_def().ToProto();
Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Sat Oct 12 16:27:48 GMT 2024 - 13.7K bytes - Click Count (0) -
tensorflow/c/c_api.h
// all the returned TF_Functions. They must be deleted with TF_DeleteFunction. // On error, returns 0, sets status to the encountered error, and the contents // of funcs will be undefined. TF_CAPI_EXPORT extern int TF_GraphGetFunctions(TF_Graph* g, TF_Function** funcs, int max_func, TF_Status* status); // Note: The following function may fail on very large protos in the future.Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Thu Oct 26 21:08:15 GMT 2023 - 82.3K bytes - Click Count (0)