Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ListDeviceNames (0.18 sec)

  1. tensorflow/c/eager/c_api_test_util.h

    void ReplaceTaskInServerDef(tensorflow::ServerDef* server_def, int task_index,
                                const std::string& host, int port);
    
    std::vector<std::string> ListDeviceNames(TFE_Context* ctx);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Jul 17 23:43:59 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  2. 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(),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  3. 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(),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  4. 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);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
Back to top