Public Types | Public Member Functions
InferenceEngine::InferencePlugin Class Reference

This class is a C++ API wrapper for IInferencePlugin. It can throw exceptions safely for the application, where it is properly handled. More...

#include <ie_plugin_cpp.hpp>

Public Types

using  Ptr = std::shared_ptr< InferencePlugin >
  Shared pointer on InferencePlugin object.
 

Public Member Functions

  InferencePlugin ()=default
  A default constructor.
 
  InferencePlugin (const InferenceEnginePluginPtr &pointer)
  Constructs a plugin instance from the given pointer. More...
 
const Version GetVersion ()
  Wraps original method IInferencePlugin::GetVersion.
 
void  LoadNetwork (ICNNNetwork &network)
  Wraps original method IInferencePlugin::LoadNetwork(ICNNNetwork &, ResponseDesc *) More...
 
ExecutableNetwork  LoadNetwork (ICNNNetwork &network, const std::map< std::string, std::string > &config)
  Wraps original method IInferencePlugin::LoadNetwork(IExecutableNetwork::Ptr&, ICNNNetwork&, const std::map<std::string, std::string> &, ResponseDesc*). More...
 
ExecutableNetwork  LoadNetwork (CNNNetwork network, const std::map< std::string, std::string > &config)
  Wraps original method IInferencePlugin::LoadNetwork(IExecutableNetwork::Ptr&, ICNNNetwork&, const std::map<std::string, std::string> &, ResponseDesc*). More...
 
void  Infer (const BlobMap &input, BlobMap &result)
  Wraps original method IInferencePlugin::Infer(const BlobMap&, BlobMap&, ResponseDesc *) More...
 
std::map< std::string, InferenceEngineProfileInfo GetPerformanceCounts () const
  Wraps original method IInferencePlugin::GetPerformanceCounts. More...
 
void  AddExtension (InferenceEngine::IExtensionPtr extension)
  Wraps original method IInferencePlugin::AddExtension. More...
 
void  SetConfig (const std::map< std::string, std::string > &config)
  Wraps original method IInferencePlugin::SetConfig. More...
 
ExecutableNetwork  ImportNetwork (const std::string &modelFileName, const std::map< std::string, std::string > &config)
  Wraps original method IInferencePlugin::ImportNetwork. More...
 
void  QueryNetwork (const ICNNNetwork &network, QueryNetworkResult &res) const
  Wraps original method IInferencePlugin::QueryNetwork(const ICNNNetwork&, QueryNetworkResult& ) const. More...
 
void  QueryNetwork (const ICNNNetwork &network, const std::map< std::string, std::string > &config, QueryNetworkResult &res) const
  Wraps original method IInferencePlugin::QueryNetwork(const ICNNNetwork&, const std::map<std::string, std::string> &, QueryNetworkResult&) const. More...
 
  operator InferenceEngine::InferenceEnginePluginPtr ()
  Converts InferenceEngine to InferenceEnginePluginPtr pointer. More...
 
  operator InferenceEngine::HeteroPluginPtr ()
  Converts InferenceEngine to HeteroPluginPtr pointer. More...
 

Detailed Description

This class is a C++ API wrapper for IInferencePlugin. It can throw exceptions safely for the application, where it is properly handled.

Constructor & Destructor Documentation

§ InferencePlugin()

InferenceEngine::InferencePlugin::InferencePlugin ( const InferenceEnginePluginPtr pointer )
inlineexplicit

Constructs a plugin instance from the given pointer.

Parameters
pointer Initialized Plugin pointer

Member Function Documentation

§ AddExtension()

void InferenceEngine::InferencePlugin::AddExtension ( InferenceEngine::IExtensionPtr  extension )
inline

Wraps original method IInferencePlugin::AddExtension.

Parameters
extension Pointer to loaded Extension

§ GetPerformanceCounts()

std::map<std::string, InferenceEngineProfileInfo> InferenceEngine::InferencePlugin::GetPerformanceCounts ( ) const
inline

Wraps original method IInferencePlugin::GetPerformanceCounts.

Deprecated:
Use IInferRequest to get performance counters
Returns
Map of layers names to profiling information for that layers

§ ImportNetwork()

ExecutableNetwork InferenceEngine::InferencePlugin::ImportNetwork ( const std::string &  modelFileName,
const std::map< std::string, std::string > &  config 
)
inline

Wraps original method IInferencePlugin::ImportNetwork.

Parameters
modelFileName A path to the imported network
config A configuration map
Returns
Created Executable Network object

§ Infer()

void InferenceEngine::InferencePlugin::Infer ( const BlobMap input,
BlobMap result 
)
inline

Wraps original method IInferencePlugin::Infer(const BlobMap&, BlobMap&, ResponseDesc *)

Deprecated:
Use IExecutableNetwork to create IInferRequest.
Parameters
input A map of input blobs accessed by input names
result A map of output blobs accessed by output names

§ LoadNetwork() [1/3]

void InferenceEngine::InferencePlugin::LoadNetwork ( ICNNNetwork network )
inline

§ LoadNetwork() [2/3]

ExecutableNetwork InferenceEngine::InferencePlugin::LoadNetwork ( ICNNNetwork network,
const std::map< std::string, std::string > &  config 
)
inline

Wraps original method IInferencePlugin::LoadNetwork(IExecutableNetwork::Ptr&, ICNNNetwork&, const std::map<std::string, std::string> &, ResponseDesc*).

Parameters
network A network object to load
config A map of configuration options
Returns
Created Executable Network object

§ LoadNetwork() [3/3]

ExecutableNetwork InferenceEngine::InferencePlugin::LoadNetwork ( CNNNetwork  network,
const std::map< std::string, std::string > &  config 
)
inline

Wraps original method IInferencePlugin::LoadNetwork(IExecutableNetwork::Ptr&, ICNNNetwork&, const std::map<std::string, std::string> &, ResponseDesc*).

Parameters
network A network object to load
config A map of configuration options
Returns
Created Executable Network object

§ operator InferenceEngine::HeteroPluginPtr()

InferenceEngine::InferencePlugin::operator InferenceEngine::HeteroPluginPtr ( )
inline

Converts InferenceEngine to HeteroPluginPtr pointer.

Deprecated:
Deprecated since HeteroPluginPtr is deprecated
Returns
Wrapped Hetero object if underlined object is HeteroPlugin instance, nullptr otherwise

§ operator InferenceEngine::InferenceEnginePluginPtr()

InferenceEngine::InferencePlugin::operator InferenceEngine::InferenceEnginePluginPtr ( )
inline

Converts InferenceEngine to InferenceEnginePluginPtr pointer.

Returns
Wrapped object

§ QueryNetwork() [1/2]

void InferenceEngine::InferencePlugin::QueryNetwork ( const ICNNNetwork network,
QueryNetworkResult res 
) const
inline

§ QueryNetwork() [2/2]

void InferenceEngine::InferencePlugin::QueryNetwork ( const ICNNNetwork network,
const std::map< std::string, std::string > &  config,
QueryNetworkResult res 
) const
inline

Wraps original method IInferencePlugin::QueryNetwork(const ICNNNetwork&, const std::map<std::string, std::string> &, QueryNetworkResult&) const.

Parameters
network A network object to query
config A configuration map
res Query results

§ SetConfig()

void InferenceEngine::InferencePlugin::SetConfig ( const std::map< std::string, std::string > &  config )
inline

Wraps original method IInferencePlugin::SetConfig.

Parameters
config A configuration map

The documentation for this class was generated from the following file: