Community
cancel
Showing results for 
Search instead for 
Did you mean: 
20 Views

Taking ownership of the object managed by the ie_plugin_ptr

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
20 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 ?