- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ListDeviceNames (0.11 sec)
-
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(),
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 03:14:26 UTC 2023 - 31.5K bytes - Viewed (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) = tensorflow::strings::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);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Feb 21 22:37:46 UTC 2024 - 23.5K bytes - Viewed (0)