Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for dev (0.15 sec)

  1. tensorflow/c/eager/c_api_test.cc

      bool has_gpu0 = false;
      bool has_gpu1 = false;
      for (int i = 0; i < num_devices; ++i) {
        const char* dev = TF_DeviceListName(devices, i, status.get());
        ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
        string device_name(dev);
        if (device_name.find("GPU:0") != string::npos) {
          has_gpu0 = true;
        }
        if (device_name.find("GPU:1") != string::npos) {
    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)
Back to top