Class InferenceEngine::gpu::ClBufferBlob

class ClBufferBlob : 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 buffer. The plugin object derived from this class can be obtained with CreateBlob() call.

Note

User can obtain OpenCL buffer handle from this class.

Subclassed by InferenceEngine::gpu::D3DBufferBlob

Public Types

using Ptr = std::shared_ptr<ClBufferBlob>

A smart pointer to the ClBufferBlob object.

Public Functions

inline explicit ClBufferBlob(const TensorDesc &tensorDesc)

Creates a ClBufferBlob object with the specified dimensions and layout.

Parameters

tensorDesc – Tensor description

inline cl_mem get()

Returns the underlying OpenCL memory object handle.

Returns

underlying OpenCL memory object handle

inline operator cl_mem()

OpenCL memory handle conversion operator.

Returns

cl_mem

inline operator cl::Buffer()

Standard Khronos cl::Buffer wrapper conversion operator.

Returns

cl::Buffer object