Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TFE_ContextAddFunction (0.26 sec)

  1. tensorflow/c/eager/c_api.h

    // TF_FunctionImportFunctionDef) to the context, allowing it to be executed with
    // TFE_Execute by creating an op with the same name as the function.
    TF_CAPI_EXPORT extern void TFE_ContextAddFunction(TFE_Context* ctx,
                                                      TF_Function* function,
                                                      TF_Status* status);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  2. tensorflow/c/eager/c_api_experimental_test.cc

      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_Context* ctx = TFE_NewContext(opts, status);
      ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
      TFE_ContextAddFunction(ctx, fn, status);
      ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
      TF_DeleteFunction(fn);
    
      for (bool async : {false, true, false}) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  3. tensorflow/c/eager/c_api.cc

        return;
      }
    
      AnnotateEagerRuntimeConstructionContext(function_def);
      status->status = tensorflow::unwrap(ctx)->AddFunctionDef(function_def);
    }
    
    void TFE_ContextAddFunction(TFE_Context* ctx, TF_Function* function,
                                TF_Status* status) {
      auto fdef_or = function->record->mutable_fdef();
      if (!fdef_or.ok()) {
        status->status = fdef_or.status();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
Back to top