Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for TFE_TensorHandleDevicePointer (0.13 sec)

  1. tensorflow/c/eager/custom_device_testutil.cc

        if (TF_GetCode(s) != TF_OK) return;
        if (dev->device_name == input_device) {
          LoggedTensor* t = reinterpret_cast<LoggedTensor*>(
              TFE_TensorHandleDevicePointer(input, s));
          if (TF_GetCode(s) != TF_OK) return;
          TFE_OpAddInput(op, t->tensor, s);
        } else {
          TFE_OpAddInput(op, input, s);
        }
        if (TF_GetCode(s) != TF_OK) return;
      }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Mar 03 20:47:31 UTC 2021
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device.cc

                                                   TF_Status* status,
                                                   void* device_info) {
      ParallelTensor* parallel_tensor = reinterpret_cast<ParallelTensor*>(
          TFE_TensorHandleDevicePointer(tensor, status));
      if (TF_GetCode(status) != TF_OK) return nullptr;
      if (parallel_tensor->num_tensors() == 1) {
        // Copy-off for single-device tensors is allowed to make debugging dynamic
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/dlpack.cc

    }
    
    void* TFE_HandleToDLPack(TFE_TensorHandle* h, TF_Status* status) {
      auto tf_dlm_context = GetDlContext(h, status);
      if (!status->status.ok()) {
        return nullptr;
      }
    
      auto* tf_dlm_data = TFE_TensorHandleDevicePointer(h, status);
      if (!status->status.ok()) {
        return nullptr;
      }
    
      const Tensor* tensor = GetTensorFromHandle(h, status);
      TF_DataType data_type = static_cast<TF_DataType>(tensor->dtype());
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api.cc

      tensorflow::AbstractTensorInterface* t =
          tensorflow::unwrap(h)->Resolve(&status->status);
      if (t == nullptr) {
        return nullptr;
      }
    
      return new TF_Tensor{t};
    }
    
    void* TFE_TensorHandleDevicePointer(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
    - 43.9K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_experimental_test.cc

        TFE_TensorHandle* copy = TFE_TensorHandleCopyToDevice(m, ctx, name, status);
        CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
        void* data = TFE_TensorHandleDevicePointer(copy, status);
        CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
        size_t size = TFE_TensorHandleDeviceMemorySize(copy, status);
        CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 03 03:14:26 UTC 2023
    - 31.5K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_experimental.h

    // only guaranteed to be valid until TFE_DeleteTensorHandle is called on this
    // TensorHandle. Only supports POD data types.
    TF_CAPI_EXPORT extern void* TFE_TensorHandleDevicePointer(TFE_TensorHandle*,
                                                              TF_Status*);
    
    // This function will block till the operation that produces `h` has
    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