- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TF_DeviceListCount (0.24 sec)
-
tensorflow/c/c_api.cc
TF_DeviceList* response = new TF_DeviceList; if (session && session->session) status->status = session->session->ListDevices(&response->response); return response; } int TF_DeviceListCount(const TF_DeviceList* list) { return list->response.size(); } #define TF_DEVICELIST_METHOD(return_type, method_name, accessor, err_val) \
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
TF_SessionListDevices(session, s), TF_DeleteDeviceList); TF_DeviceList* device_list = list.get(); CHECK_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); const int num_devices = TF_DeviceListCount(device_list); LOG(INFO) << "There are " << num_devices << " devices."; for (int i = 0; i < num_devices; ++i) { const char* device_name = TF_DeviceListName(device_list, i, s);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0)