Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_DeleteDeviceList (0.07 sec)

  1. 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)
  2. tensorflow/c/c_api.cc

      TF_CHECK_OK(MessageToBuffer(op_list, ret));
      return ret;
    }
    
    // --------------------------------------------------------------------------
    // ListDevices & SessionListDevices API
    
    void TF_DeleteDeviceList(TF_DeviceList* list) { delete list; }
    
    TF_DeviceList* TF_SessionListDevices(TF_Session* session, TF_Status* status) {
      TF_DeviceList* response = new TF_DeviceList;
      if (session && session->session)
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top