Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Taking ownership of the object managed by the ie_plugin_ptr

Tibrewal__Siddhant
309 Views

Hi there,

I am writing an interface class to the IE for an application and am unable to copy initialise members of a class when tried inside a public interface function. It works fine when done from inside the constructor of the class.
Example:

auto pluginDispatcher = InferenceEngine::PluginDispatcher( { "./", "" } );
m_intelPlugin =  pluginDispatcher.getPluginByDevice( szComputeDevice ); // m_intelPlugin is the member of the interface class

I think the ie_plugin_ptr is not releasing the ownership once the IE object gets internally managed instead of by the user. Can someone point out the thing which I might be overlooking here.

Thanks and Bests,
Sid

0 Kudos
1 Reply
Shubha_R_Intel
Employee
309 Views

Hi Siddhant. There is not enough information here to understand what the issue is. Can you kindly attach a sample code which compiles and runs as a zip file ?

0 Kudos
Reply