Public Member Functions | Protected Attributes
InferenceEngine::Extension Class Reference

This class is a C++ helper to work with objects created using extensions. More...

#include <ie_extension.h>

Inheritance diagram for InferenceEngine::Extension:
Inheritance graph
[legend]
Collaboration diagram for InferenceEngine::Extension:
Collaboration graph
[legend]

Public Member Functions

template<typename C , typename = details::enableIfSupportedChar<C>>
 Extension (const std::basic_string< C > &name)
 Loads extension from a shared library. More...
 
void GetVersion (const InferenceEngine::Version *&versionInfo) const noexcept override
 Gets the extension version information. More...
 
void Unload () noexcept override
 Cleans the resources up.
 
void Release () noexcept override
 Does nothing since destruction is done via the regular mechanism.
 
std::map< std::string, ngraph::OpSet > getOpSets () override
 Returns operation sets This method throws an exception if it was not implemented. More...
 
std::vector< std::string > getImplTypes (const std::shared_ptr< ngraph::Node > &node) override
 Returns vector of implementation types. More...
 
ILayerImpl::Ptr getImplementation (const std::shared_ptr< ngraph::Node > &node, const std::string &implType) override
 Returns implementation for specific nGraph op. More...
 

Protected Attributes

details::SOPointer< IExtensionactual
 A SOPointer instance to the loaded templated object.
 

Detailed Description

This class is a C++ helper to work with objects created using extensions.

Constructor & Destructor Documentation

◆ Extension()

template<typename C , typename = details::enableIfSupportedChar<C>>
InferenceEngine::Extension::Extension ( const std::basic_string< C > &  name)
inlineexplicit

Loads extension from a shared library.

Parameters
nameFull or relative path to extension library

Member Function Documentation

◆ getImplementation()

ILayerImpl::Ptr InferenceEngine::Extension::getImplementation ( const std::shared_ptr< ngraph::Node > &  node,
const std::string &  implType 
)
inlineoverridevirtual

Returns implementation for specific nGraph op.

Parameters
nodeshared pointer to nGraph op
implTypeimplementation type
Returns
shared pointer to implementation

Reimplemented from InferenceEngine::IExtension.

◆ getImplTypes()

std::vector<std::string> InferenceEngine::Extension::getImplTypes ( const std::shared_ptr< ngraph::Node > &  node)
inlineoverridevirtual

Returns vector of implementation types.

Parameters
nodeshared pointer to nGraph op
Returns
vector of strings

Reimplemented from InferenceEngine::IExtension.

◆ getOpSets()

std::map<std::string, ngraph::OpSet> InferenceEngine::Extension::getOpSets ( )
overridevirtual

Returns operation sets This method throws an exception if it was not implemented.

Returns
map of opset name to opset

Reimplemented from InferenceEngine::IExtension.

◆ GetVersion()

void InferenceEngine::Extension::GetVersion ( const InferenceEngine::Version *&  versionInfo) const
inlineoverridevirtualnoexcept

Gets the extension version information.

Parameters
versionInfoA pointer to version info, set by the plugin

Implements InferenceEngine::IExtension.


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