class dlstreamer::MemoryMapperOpenVINOToCPU#

Overview#

#include <openvino_to_cpu.h>

class MemoryMapperOpenVINOToCPU: public dlstreamer::BaseMemoryMapper {
public:
    // methods

    virtual TensorPtr map(TensorPtr src, AccessMode mode);
    virtual FramePtr map(FramePtr src, AccessMode mode);

    BaseMemoryMapper(
        const ContextPtr& input_context,
        const ContextPtr& output_context
    );
};

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

virtual FramePtr map(FramePtr src, AccessMode mode)

Map frame into another context. The function returns mapped frame, so that the parent() on output frame returns original frame and context() on output frame returns input_context().

Parameters:

src

Frame to map

mode

Access mode - read or write or read+write