Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for src_buffer (0.12 sec)

  1. tensorflow/c/experimental/next_pluggable_device/c_api.cc

        return nullptr;
      }
      absl::StatusOr<PJRT_Buffer*> c_buffer =
          tensorflow::GetPjRtCBufferFromTensor(&tensor);
      if (!c_buffer.ok()) {
        status->status = c_buffer.status();
        return nullptr;
      }
      status->status = absl::OkStatus();
      return *c_buffer;
    }
    
    void TF_CreatePjRtBuffer(TF_Tensor* c_tensor, PJRT_Buffer* c_buffer,
                             const char* device_type, TF_Status* status) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 05:48:24 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.cc

      }
      return c_api_buffer->c_buffer();
    }
    
    absl::Status SetPjRtCBufferToTensor(PJRT_Buffer* c_buffer,
                                        xla::PjRtCApiClient* c_api_client,
                                        Tensor* tensor) {
      auto buffer = std::make_unique<xla::PjRtCApiBuffer>(c_api_client, c_buffer);
      tensorflow::AsyncValueTensor* av_tensor =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 05:48:24 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/pjrt_device_context.cc

        return;
      }
      // TODO(b/288585098): consider whether to support same device copy in PJRT
      // API.
      absl::StatusOr<PJRT_Buffer*> c_src_buffer =
          GetPjRtCBufferFromTensor(input_tensor);
      if (!c_src_buffer.ok()) {
        done(c_src_buffer.status());
        return;
      }
      absl::StatusOr<xla::PjRtCApiClient*> c_api_client =
          tensorflow::GetPjRtCApiClient(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:49:31 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.h

    #include "tensorflow/core/framework/tensor.h"
    
    namespace tensorflow {
    
    absl::StatusOr<PJRT_Buffer*> GetPjRtCBufferFromTensor(const Tensor* tensor);
    
    absl::Status SetPjRtCBufferToTensor(PJRT_Buffer* c_buffer,
                                        xla::PjRtCApiClient* c_api_client,
                                        Tensor* tensor);
    
    absl::StatusOr<xla::PjRtCApiClient*> GetPjRtCApiClient(
        const DeviceType& device_type);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 05:48:24 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_launch_util.cc

          // they have ownership of the buffer (see comment in
          // PopulateExecutionInputBuffer). Release ownership from output to avoid
          // double free.
          output.set_buffer(se::OwningDeviceMemory(), {output_num});
          return input_tensor;
        }
      }
    
      if (allocate_xla_tensors) {
        Tensor output_tensor;
        TF_RETURN_IF_ERROR(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
Back to top