Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DefineFunction (0.31 sec)

  1. tensorflow/c/c_api_function_test.cc

    }
    
    TEST_F(CApiFunctionTest, SameGradForTwoFunctions) {
      // Define the functions
      TF_Function* func1;
      TF_Function* func2;
      TF_Function* grad_func;
      DefineFunction("FooFunc1", &func1);
      DefineFunction("FooFunc2", &func2);
      DefineFunction("MyGrad", &grad_func);
    
      // Make grad_func be a gradient of func1 and func2
      TF_GraphCopyFunction(host_graph_, func1, grad_func, s_);
    C++
    - Registered: Tue Apr 23 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_experimental_test.cc

      ASSERT_EQ(TF_OK, code) << status_msg;
      TF_DeletePluggableDeviceLibraryHandle(lib);
    #endif  // !defined(TENSORFLOW_NO_SHARED_OBJECTS)
    #endif  // !defined(PLATFORM_WINDOWS)
    }
    
    void DefineFunction(const char* name, TF_Function** func,
                        const char* description = nullptr,
                        bool append_hash = false) {
      std::unique_ptr<TF_Graph, decltype(&TF_DeleteGraph)> func_graph(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
Back to top