Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_GraphCopyFunction (0.28 sec)

  1. tensorflow/c/c_api_function_test.cc

      DefineFunction("MyGrad2", &grad_func2);
    
      // func cannot be null
      TF_GraphCopyFunction(host_graph_, nullptr, func_, s_);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s_));
      EXPECT_EQ(string("'func' argument to TF_GraphCopyFunction cannot be null"),
                string(TF_Message(s_)));
    
      // Cannot change gradient
      TF_GraphCopyFunction(host_graph_, func_, grad_func1, s_);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  2. tensorflow/c/c_api_function.cc

      return func->record->fdef().signature().name().c_str();
    }
    
    void TF_GraphCopyFunction(TF_Graph* g, const TF_Function* func,
                              const TF_Function* grad, TF_Status* status) {
      if (func == nullptr) {
        status->status = InvalidArgument(
            "'func' argument to TF_GraphCopyFunction cannot be null");
        return;
      }
    
      tensorflow::mutex_lock l(g->mu);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  3. tensorflow/c/c_api_experimental_test.cc

      TF_Status* s_;
      TF_Graph* func_graph_;
      TF_Function* func_;
    };
    
    TEST_F(CApiExperimentalFunctionTest, GraphRemoveFunction) {
      TF_Function* funcs[1];
      DefineFunction(func_name_, &func_);
    
      TF_GraphCopyFunction(func_graph_, func_, nullptr, s_);
      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);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  4. tensorflow/c/c_api.h

    // If `grad` is null and `func` is in `g`, TF_GraphCopyFunction is a noop.
    // `grad` must have appropriate signature as described in the doc of
    // GradientDef in tensorflow/core/framework/function.proto.
    //
    // If successful, status is set to OK and `func` and `grad` are added to `g`.
    // Otherwise, status is set to the encountered error and `g` is unmodified.
    TF_CAPI_EXPORT extern void TF_GraphCopyFunction(TF_Graph* g,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
Back to top