Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_GraphNumFunctions (0.09 sec)

  1. 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 Dec 30 12:39:10 UTC 2025
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. 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 Dec 30 12:39:10 UTC 2025
    - Last Modified: Mon Nov 17 00:00:38 UTC 2025
    - 63.6K bytes
    - Viewed (1)
Back to top