- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TF_GraphNumFunctions (0.13 sec)
-
tensorflow/c/c_api_experimental_test.cc
ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); EXPECT_EQ(TF_GraphNumFunctions(func_graph_), 1); EXPECT_EQ(TF_GraphGetFunctions(func_graph_, funcs, 1, s_), 1); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); TF_GraphRemoveFunction(func_graph_, func_name_, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); EXPECT_EQ(TF_GraphNumFunctions(func_graph_), 0);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Tue Jan 17 22:27:52 UTC 2023 - 13.1K bytes - Viewed (0) -
tensorflow/c/c_api_function.cc
gdef.set_function_name(func->record->fdef().signature().name()); gdef.set_gradient_func(grad->record->fdef().signature().name()); 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,
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 13.7K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
GetFunctionDef(func, &fdef); return fdef.signature().name(); } TEST_F(CApiFunctionTest, GetFunctionsFromGraph) { TF_Function* funcs[2]; // Get functions from empty graph EXPECT_EQ(TF_GraphNumFunctions(host_graph_), 0); TF_GraphGetFunctions(host_graph_, nullptr, 0, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); // Define a function and add it to host_graph_ TF_Function* func0;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0) -
tensorflow/c/c_api.h
// Returns the number of TF_Functions registered in `g`. TF_CAPI_EXPORT extern int TF_GraphNumFunctions(TF_Graph* g); // Fills in `funcs` with the TF_Function* registered in `g`. // `funcs` must point to an array of TF_Function* of length at least // `max_func`. In usual usage, max_func should be set to the result of // TF_GraphNumFunctions(g). In this case, all the functions registered in
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Oct 26 21:08:15 UTC 2023 - 82.3K bytes - Viewed (0)