Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for device_context (2.24 sec)

  1. tensorflow/compiler/jit/device_context_test.cc

        device_allocator_ = device_->GetAllocator(device_alloc_attr);
    
        tensorflow::DeviceContext* device_context;
        auto status = device_->TryGetDeviceContext(&device_context);
        TF_EXPECT_OK(status);
        device_context_.reset(device_context);
      }
    
      std::unique_ptr<Device> device_;
      tensorflow::core::RefCountPtr<DeviceContext> device_context_;
      tensorflow::Allocator* host_allocator_;
      tensorflow::Allocator* device_allocator_;
    };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_host_send_recv_device_context_test.cc

              std::move(se_event));
      XlaHostRecvDeviceContext* device_context =
          new XlaHostRecvDeviceContext(stream.get(), gpu_dst, shape, done_event);
      TF_ASSERT_OK(device_context->CopyDeviceTensorToCPUSync(
          &device_tensor, "", device_.get(), &dest_cpu_tensor));
    
      tensorflow::test::ExpectClose(origin_cpu_tensor, dest_cpu_tensor);
      device_context->Unref();
    }
    
    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_send_device_context.h

    //  done_event->Init();
    //
    //  XlaHostSendDeviceContext device_context(&stream, &gpu_dst,
    //    shape, done_event);
    //  device_context.CopyCPUTensorToDeviceSync(
    //    &cpu_tensor, &device, &device_tensor);
    
    class XlaHostSendDeviceContext : public DeviceContext {
     public:
      XlaHostSendDeviceContext(
          se::Stream* stream, se::DeviceMemoryBase* device_memory_base,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_host_recv_device_context.h

    //  done_event->Init();
    //  Tensor dest_cpu_tensor;
    //
    //  XlaHostRecvDeviceContext device_context(&stream, gpu_dst,
    //    shape, done_event);
    //  device_context.CopyDeviceTensorToCPUSync(
    //    &device_tensor, "", &device, &dest_cpu_tensor);
    
    class XlaHostRecvDeviceContext : public DeviceContext {
     public:
      XlaHostRecvDeviceContext(
          se::Stream* stream, const se::DeviceMemoryBase& device_memory_base,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/pjrt_device_context.h

      // Note: we currently assume the PjRtBuffer is a PjRtStreamExecutorBuffer.
      bool use_pjrt_tensor_buffer_;
    };
    
    void PjRtDeviceToDeviceCopy(DeviceContext* send_dev_context,
                                DeviceContext* recv_dev_context, Device* src,
                                Device* dst, AllocatorAttributes src_alloc_attr,
                                AllocatorAttributes dst_alloc_attr,
    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/jit/xla_device_context.h

     private:
      // The stream executor of the device.
      se::StreamExecutor* stream_executor_;
    };
    
    // Helper class for managing data transfers between host and XLA devices.
    class XlaDeviceContext : public DeviceContext {
     public:
      explicit XlaDeviceContext(
          std::shared_ptr<se::Stream> compute_stream,
          std::shared_ptr<se::Stream> host_to_device_stream,
          std::shared_ptr<se::Stream> device_to_host_stream,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.1K bytes
    - Viewed (0)
Back to top