Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for device_type (0.15 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      for (int device_index = 0; device_index < TF_DeviceListCount(devices.get());
           ++device_index) {
        std::string device_type =
            TF_DeviceListType(devices.get(), device_index, status.get());
        ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
        if (device_type == "TPU") {
          has_tpu = true;
          break;
        }
      }
      if (has_tpu) {
        BasicTestsForTwoDevices(context.get(),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  2. tensorflow/c/eager/c_api_experimental.cc

      if (h == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return nullptr;
      }
      return tensorflow::unwrap(h)->DeviceType(&status->status);
    }
    
    int TFE_TensorHandleDeviceID(TFE_TensorHandle* h, TF_Status* status) {
      if (h == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return -1;
      }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
Back to top