class dlstreamer::MemoryMapperDMAToOpenCL#
Overview#
#include <dma_to_opencl.h> class MemoryMapperDMAToOpenCL: public dlstreamer::BaseMemoryMapper { public: // construction MemoryMapperDMAToOpenCL( const ContextPtr& input_context, const ContextPtr& output_context ); // methods virtual TensorPtr map(TensorPtr src, AccessMode mode); };
Inherited Members#
public: // methods virtual TensorPtr map(TensorPtr src, AccessMode mode = AccessMode::ReadWrite) = 0; virtual FramePtr map(FramePtr src, AccessMode mode = AccessMode::ReadWrite) = 0; virtual ContextPtr input_context() const = 0; virtual ContextPtr output_context() const = 0; virtual TensorPtr map(TensorPtr src, AccessMode mode); virtual FramePtr map(FramePtr src, AccessMode mode); virtual ContextPtr input_context() const; virtual ContextPtr output_context() const; TensorPtr map(TensorPtr src, AccessMode mode = AccessMode::ReadWrite); FramePtr map(FramePtr src, AccessMode mode = AccessMode::ReadWrite);
Detailed Documentation#
Methods#
virtual TensorPtr map(TensorPtr src, AccessMode mode)
Map tensor into another context. The function returns mapped tensor, so that the parent() on output tensor returns original tensor and context() on output tensor returns input_context().
Parameters:
src |
Tensor to map |
mode |
Access mode - read or write or read+write |