Class InferenceEngine::gpu::ClImage2DBlob

class ClImage2DBlob : public InferenceEngine::gpu::ClBlob, public InferenceEngine::gpu::details::param_map_obj_getter

This class represents an abstraction for GPU plugin remote blob which can be shared with user-supplied OpenCL 2D Image. The plugin object derived from this class can be obtained with CreateBlob() call.

Note

User can obtain OpenCL image handle from this class.

Subclassed by InferenceEngine::gpu::D3DSurface2DBlob, InferenceEngine::gpu::VASurfaceBlob

Public Types

using Ptr = std::shared_ptr<ClImage2DBlob>

A smart pointer to the ClImage2DBlob object.

Public Functions

inline explicit ClImage2DBlob(const TensorDesc &tensorDesc)

Creates a ClImage2DBlob object with the specified dimensions and layout.

Parameters

tensorDesc – Tensor description

inline cl_mem get()

Returns the underlying OpenCL memory object handle.

Returns

cl_mem

inline operator cl_mem()

OpenCL memory handle conversion operator.

Returns

cl_mem

inline operator cl::Image2D()

Standard Khronos cl::Image2D wrapper conversion operator for the ClContext object.

Returns

cl::Image2D object