Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TFE_TensorHandleDeviceType (0.19 sec)

  1. tensorflow/c/eager/c_api_experimental_test.cc

    TEST(CAPI, TensorHandleNullptr) {
      TFE_TensorHandle* h = nullptr;
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
    
      const char* device_type = TFE_TensorHandleDeviceType(h, status.get());
      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
      ASSERT_EQ(device_type, nullptr);
      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

    void TFE_ContextSetJitCompileRewrite(TFE_Context* ctx, unsigned char enable,
                                         TF_Status* status) {
      tensorflow::unwrap(ctx)->SetJitCompileRewrite(enable);
    }
    
    const char* TFE_TensorHandleDeviceType(TFE_TensorHandle* h, TF_Status* status) {
      if (h == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return nullptr;
      }
    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_Status* status);
    
    // Returns the device type of the operation that produced `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,
    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