- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TF_DeleteDeviceList (0.08 sec)
-
tensorflow/c/c_api.h
// be freed with a call to TF_DeleteDeviceList. TF_CAPI_EXPORT extern TF_DeviceList* TF_SessionListDevices(TF_Session* session, TF_Status* status); // Lists all devices in a TF_Session. // // Caller takes ownership of the returned TF_DeviceList* which must eventually // be freed with a call to TF_DeleteDeviceList.
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Oct 26 21:08:15 UTC 2023 - 82.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test.cc
for (int i = 0; i < num_devices; ++i) { EXPECT_NE("", TF_DeviceListName(devices, i, status)) << i; EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); } TF_DeleteDeviceList(devices); TF_DeleteStatus(status); } TEST(CAPI, TensorHandle) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); TF_Status* s = status.get(); std::unique_ptr<TF_DeviceList, decltype(&TF_DeleteDeviceList)> list( 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);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0)