Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TFE_TensorHandleDeviceID (0.2 sec)

  1. tensorflow/c/eager/c_api_experimental_test.cc

      ASSERT_EQ(device_type, nullptr);
      ASSERT_EQ("Invalid handle", string(TF_Message(status.get())));
    
      TF_SetStatus(status.get(), TF_OK, "");
    
      int device_id = TFE_TensorHandleDeviceID(h, status.get());
      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
      ASSERT_EQ(device_id, -1);
      ASSERT_EQ("Invalid handle", string(TF_Message(status.get())));
    }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 03 03:14:26 UTC 2023
    - 31.5K bytes
    - Viewed (0)
  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;
      }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_experimental.h

    TF_CAPI_EXPORT extern const char* TFE_TensorHandleDeviceType(
        TFE_TensorHandle* h, TF_Status* status);
    
    // Returns the device ID of the operation that produced `h`.
    TF_CAPI_EXPORT extern int TFE_TensorHandleDeviceID(TFE_TensorHandle* h,
                                                       TF_Status* status);
    
    // Returns the status for the tensor handle. In TFRT, a tensor handle can carry
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 39.5K bytes
    - Viewed (0)
Back to top