- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for ListDeviceNames (0.32 seconds)
-
tensorflow/c/eager/c_api_experimental_test.cc
// `ctx_0`, `ctx_1` contains `remote_device`. { const std::vector<std::string>& device_names = ListDeviceNames(ctx_0); ASSERT_TRUE(std::find(device_names.begin(), device_names.end(), remote_device) != device_names.end()); } { const std::vector<std::string>& device_names = ListDeviceNames(ctx_1); ASSERT_TRUE(std::find(device_names.begin(), device_names.end(),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) -
tensorflow/c/eager/c_api_test.cc
{ const std::vector<std::string>& device_names = ListDeviceNames(ctx_0); ASSERT_TRUE(std::find(device_names.begin(), device_names.end(), remote_device) != device_names.end()); } { const std::vector<std::string>& device_names = ListDeviceNames(ctx_1); ASSERT_TRUE(std::find(device_names.begin(), device_names.end(),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) -
tensorflow/c/eager/c_api_test_util.cc
tensorflow::JobDef* job_def = server_def->mutable_cluster()->mutable_job(0); job_def->mutable_tasks()->at(task_index) = absl::StrCat(host, ":", port); } std::vector<std::string> ListDeviceNames(TFE_Context* ctx) { TF_Status* status = TF_NewStatus(); std::vector<std::string> device_names; TF_DeviceList* devices = TFE_ContextListDevices(ctx, status);
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)