Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TFE_ContextAddFunction (0.4 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 23 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 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  3. tensorflow/c/eager/parallel_device/parallel_device_test.cc

              /* opts */ nullptr, /* description */ "", /* status */ status),
          TF_DeleteFunction);
      if (TF_GetCode(status) != TF_OK) return;
      TFE_ContextAddFunction(context, function.get(), status);
    }
    
    TEST(PARALLEL_DEVICE, TestFunction) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  4. 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 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
Back to top