Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for TFE_NewContextOptions (0.34 seconds)

  1. tensorflow/c/eager/c_api_test.cc

    using tensorflow::string;
    
    namespace {
    
    void BM_InitOp(::testing::benchmark::State& state) {
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_Context* ctx = TFE_NewContext(opts, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
      TFE_TensorHandle* m = TestMatrixTensorHandle(ctx);
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 94.6K bytes
    - Click Count (0)
  2. tensorflow/c/eager/c_api_experimental_test.cc

      EXPECT_TRUE(callback2_invoked);
      TFE_DeleteCancellationManager(c_mgr);
    }
    
    TEST(CAPI, ExecutorContextDestructionOrder) {
      TF_Status* status = TF_NewStatus();
    
      {
        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_Executor* executor = TFE_NewExecutor(
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 31.5K bytes
    - Click Count (0)
  3. tensorflow/c/eager/c_api_cluster_test.cc

                      server_def, tensorflow::Env::Default(), &worker_server)
                      .ok());
      ASSERT_TRUE(worker_server->Start().ok());
    
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(async));
      TFE_ContextOptionsSetDevicePlacementPolicy(opts, TFE_DEVICE_PLACEMENT_SILENT);
      TFE_Context* ctx = TFE_NewContext(opts, status);
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 19.2K bytes
    - Click Count (0)
  4. tensorflow/c/eager/c_api_unified_experimental_test.cc

      }
    };
    
    TEST_P(UnifiedCAPI, TestBasicEager) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_ContextOptionsSetTfrt(opts, std::get<1>(GetParam()));
      TF_ExecutionContext* ctx = TF_NewEagerExecutionContext(opts, status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 12 05:11:17 GMT 2024
    - 39.1K bytes
    - Click Count (0)
  5. tensorflow/c/eager/c_api_distributed_test.cc

                      server_def, tensorflow::Env::Default(), &worker_server2)
                      .ok());
      ASSERT_TRUE(worker_server2->Start().ok());
    
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(/*enable=*/true));
      TFE_ContextOptionsSetDevicePlacementPolicy(opts, TFE_DEVICE_PLACEMENT_SILENT);
      TFE_Context* ctx = TFE_NewContext(opts, status);
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 12 05:11:17 GMT 2024
    - 23.4K bytes
    - Click Count (0)
  6. tensorflow/c/eager/dlpack_test.cc

      }
    
      TFE_CallDLManagedTensorDeleter(dlm_out);
      TFE_DeleteTensorHandle(handle);
    }
    
    TEST(DLPack, HandleFromDLPackStrides) {
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_Context* ctx = TFE_NewContext(opts, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
      TestHandleFromDLPack(status, ctx, {}, {});
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Click Count (0)
  7. tensorflow/c/c_api_experimental_test.cc

      EXPECT_EQ(id, 0);
    }
    
    class ShapeInferenceTest : public ::testing::Test {
     protected:
      ShapeInferenceTest()
          : status_(TF_NewStatus()), tfe_context_options_(TFE_NewContextOptions()) {
        tfe_context_ = TFE_NewContext(tfe_context_options_, status_);
        CHECK_EQ(TF_OK, TF_GetCode(status_)) << TF_Message(status_);
      }
    
      ~ShapeInferenceTest() override {
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Jan 07 04:56:09 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  8. tensorflow/c/eager/c_api.h

    #include "tensorflow/c/c_api_macros.h"
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    typedef struct TFE_ContextOptions TFE_ContextOptions;
    
    // Return a new options object.
    TF_CAPI_EXPORT extern TFE_ContextOptions* TFE_NewContextOptions(void);
    
    // Set the config in TF_ContextOptions.options.
    // config should be a serialized tensorflow.ConfigProto proto.
    // If config was not parsed successfully as a ConfigProto, record the
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Click Count (0)
  9. tensorflow/c/eager/c_api_test_util.cc

                               bool isolate_session_state,
                               int64_t init_timeout_in_ms) {
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      opts->session_options.options.config.set_isolate_session_state(
          isolate_session_state);
      TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(false));
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 23.4K bytes
    - Click Count (0)
  10. tensorflow/c/eager/c_api.cc

      tensorflow::AttrValue value;
      SetAttrValue("kEagerRuntime", &value);
      (*function_def.mutable_attr())["_construction_context"] = value;
    }
    
    }  // namespace
    
    extern "C" {
    
    TFE_ContextOptions* TFE_NewContextOptions() { return new TFE_ContextOptions; }
    
    void TFE_ContextOptionsSetConfig(TFE_ContextOptions* options, const void* proto,
                                     size_t proto_len, TF_Status* status) {
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Nov 07 05:55:21 GMT 2025
    - 43.9K bytes
    - Click Count (0)
Back to Top