Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for device_vendor (0.2 sec)

  1. tensorflow/compiler/jit/xla_host_send_device_context.h

      // Copies 'cpu_tensor' to `device_memory_base_` with `shape_`.
      // `device_tensor` is unused.
      void CopyCPUTensorToDevice(const Tensor* cpu_tensor, Device* device,
                                 Tensor* device_tensor, StatusCallback done,
                                 bool sync_dst_compute) const override;
    
      void CopyDeviceTensorToCPU(const Tensor* device_tensor,
                                 StringPiece tensor_name, Device* device,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_host_send_recv_device_context_test.cc

    TEST_F(XlaHostSendRecvDeviceContextTest, CopyDeviceTensorToCPU) {
      SetDevice("GPU");
      Tensor origin_cpu_tensor(host_allocator_, DT_FLOAT, TensorShape({2, 2}));
      test::FillValues<float>(&origin_cpu_tensor, {1.2, 2.3, 3.4, 4.5});
      Tensor device_tensor(device_allocator_, DT_FLOAT, TensorShape({2, 2}));
      Tensor dest_cpu_tensor(host_allocator_, DT_FLOAT, TensorShape({2, 2}));
    
      stream_executor::Platform* platform =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_host_recv_device_context.h

                                 Tensor* device_tensor, StatusCallback done,
                                 bool sync_dst_compute) const override {
        done(errors::Internal("host->device copy not implemented."));
      }
    
      // Copies `device_memory_base_` with `shape_` into `cpu_tensor`.
      // `device_tensor` is unused.
      void CopyDeviceTensorToCPU(const Tensor* device_tensor,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/device_context_test.cc

      TF_ASSERT_OK(device_context_->CopyCPUTensorToDeviceSync(
          &origin_cpu_tensor, device_.get(), &device_tensor));
      TF_ASSERT_OK(device_context_->CopyDeviceTensorToCPUSync(
          &device_tensor, "", device_.get(), &dest_cpu_tensor));
      LOG(INFO) << "H2D - D2H roundtrip completes. tensor: "
                << dest_cpu_tensor.DebugString(4);
    
      tensorflow::test::ExpectClose(origin_cpu_tensor, dest_cpu_tensor);
    }
    #endif
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/pjrt_device_context.h

      void CopyCPUTensorToDevice(const Tensor* cpu_tensor, Device* device,
                                 Tensor* device_tensor, StatusCallback done,
                                 bool sync_dst_compute) const override;
      void CopyDeviceTensorToCPU(const Tensor* device_tensor,
                                 absl::string_view tensor_name, Device* device,
                                 Tensor* cpu_tensor, StatusCallback done) override;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 19 19:27:39 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/ir/gpu_ops.td

    // GPU MIG.
    def TransferToDeviceOp: Gpu_Op<"transfer_to_device"> {
      let summary = "Transfer a CPU tensor to device.";
    
      let description = [{
        Transfer a CPU tensor to device.
    
        Example:
          %device_tensor = gpurt.transfer_to_device %cpu_tensor
      }];
    
      let arguments = (ins TFTensorType);
      let results = (outs TFTensorType);
      let assemblyFormat = "operands attr-dict";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 15:01:21 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_device_context.h

          thread::ThreadPool* thread_pool);
    
      void CopyCPUTensorToDevice(const Tensor* cpu_tensor, Device* device,
                                 Tensor* device_tensor, StatusCallback done,
                                 bool sync_dst_compute) const override;
      void CopyDeviceTensorToCPU(const Tensor* device_tensor,
                                 absl::string_view tensor_name, Device* device,
                                 Tensor* cpu_tensor, StatusCallback done) override;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_host_send_device_context.cc

    #include "tensorflow/compiler/tf2xla/type_util.h"
    
    namespace tensorflow {
    
    void XlaHostSendDeviceContext::CopyCPUTensorToDevice(
        const Tensor* cpu_tensor, Device* device, Tensor* device_tensor,
        StatusCallback done, bool sync_dst_compute) const {
      auto status = stream_->Memcpy(device_memory_base_, cpu_tensor->data(),
                                    device_memory_base_->size());
      if (!status.ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_host_recv_device_context.cc

    #include "tensorflow/compiler/tf2xla/shape_util.h"
    #include "tensorflow/compiler/tf2xla/type_util.h"
    
    namespace tensorflow {
    
    void XlaHostRecvDeviceContext::CopyDeviceTensorToCPU(
        const Tensor* device_tensor, StringPiece tensor_name, Device* device,
        Tensor* cpu_tensor, StatusCallback done) {
      DataType dtype = EncodePrimitiveTypeAsDataType(shape_.element_type()).value();
      TensorShape tensor_shape;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top