Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for TFE_TensorHandleDevicePointer (0.31 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;
      }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 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
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 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());
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K 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;
      }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  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);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  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
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
Back to top