- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for TFE_NewContextOptions (0.35 seconds)
-
tensorflow/c/eager/c_api_debug_test.cc
#include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/test.h" TEST(CApiDebug, ScalarCPU) { 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* h = TestScalarTensorHandle(ctx, 1.0f);Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Mon Apr 06 22:10:09 GMT 2020 - 2.3K bytes - Click Count (0) -
tensorflow/c/eager/c_api_remote_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_EXPLICIT);Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Aug 12 00:14:22 GMT 2020 - 5.4K bytes - Click Count (0) -
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) -
tensorflow/c/eager/c_api_remote_test_util.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>(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: Fri Dec 11 22:56:03 GMT 2020 - 9.1K bytes - Click Count (0)