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

 Extension (const file_name_t &name)
 Loads extension from a shared library. More...
 
void GetVersion (const InferenceEngine::Version *&versionInfo) const noexcept override
 Gets the extension version information. More...
 
void SetLogCallback (InferenceEngine::IErrorListener &listener) noexcept override
 Sets a log callback that is used to track what is going on inside. More...
 
void Unload () noexcept override
 Cleans the resources up.
 
void Release () noexcept override
 Does nothing since destruction is done via the regular mechanism.
 
StatusCode getPrimitiveTypes (char **&types, unsigned int &size, ResponseDesc *resp) noexcept override
 Gets the array with types of layers which are included in the extension. More...
 
StatusCode getFactoryFor (ILayerImplFactory *&factory, const CNNLayer *cnnLayer, ResponseDesc *resp) noexcept override
 Gets the factory with implementations for a given layer. More...
 
StatusCode getShapeInferImpl (IShapeInferImpl::Ptr &impl, const char *type, ResponseDesc *resp) noexcept override
 Gets shape propagation implementation for the given string-type of CNNLayer. More...
 
StatusCode getShapeInferTypes (char **&types, unsigned int &size, ResponseDesc *resp) noexcept override
 Gets the array with types of layers which are included in the extension. More...
 
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...
 
- Public Member Functions inherited from InferenceEngine::IExtension
StatusCode getShapeInferTypes (char **&, unsigned int &, ResponseDesc *) noexcept override
 Fills passed array with types of layers which shape infer implementations are included in the extension. More...
 
StatusCode getShapeInferImpl (IShapeInferImpl::Ptr &, const char *, ResponseDesc *) noexcept override
 Gets shape propagation implementation for the given string-type of CNNLayer. More...
 

Protected Attributes

InferenceEngine::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()

InferenceEngine::Extension::Extension ( const file_name_t &  name)
inlineexplicit

Loads extension from a shared library.

Parameters
nameFull or relative path to extension library

Member Function Documentation

§ getFactoryFor()

StatusCode InferenceEngine::Extension::getFactoryFor ( ILayerImplFactory *&  factory,
const CNNLayer *  cnnLayer,
ResponseDesc resp 
)
inlineoverridevirtualnoexcept

Gets the factory with implementations for a given layer.

Deprecated:
Use IExtension::getImplementation to get a concrete implementation. The method will be removed in 2021.1 release.
Parameters
factoryFactory with implementations
cnnLayerA layer to get the factory for
respResponse descriptor
Returns
Status code

Reimplemented from InferenceEngine::IExtension.

§ 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.

§ getPrimitiveTypes()

StatusCode InferenceEngine::Extension::getPrimitiveTypes ( char **&  types,
unsigned int &  size,
ResponseDesc resp 
)
inlineoverridevirtualnoexcept

Gets the array with types of layers which are included in the extension.

Deprecated:
Use IExtension::getImplTypes to get implementation types for a particular node. The method will removed in 2021.1 release.
Parameters
typesTypes array
sizeSize of the types array
respResponse descriptor
Returns
Status code

Reimplemented from InferenceEngine::IExtension.

§ getShapeInferImpl()

StatusCode InferenceEngine::Extension::getShapeInferImpl ( IShapeInferImpl::Ptr impl,
const char *  type,
ResponseDesc resp 
)
inlineoverridevirtualnoexcept

Gets shape propagation implementation for the given string-type of CNNLayer.

Deprecated:
Implement ngraph::op::Op::validate_and_infer_types method in a custom ngraph operation The method will be removed in 2021.1 release.
Parameters
implthe vector with implementations which is ordered by priority
typeA type of CNNLayer
respresponse descriptor
Returns
status code

Implements InferenceEngine::IShapeInferExtension.

§ getShapeInferTypes()

StatusCode InferenceEngine::Extension::getShapeInferTypes ( char **&  types,
unsigned int &  size,
ResponseDesc resp 
)
inlineoverridevirtualnoexcept

Gets the array with types of layers which are included in the extension.

Deprecated:
Implement ngraph::op::Op::validate_and_infer_types method in a custom ngraph operation The method will be removed in 2021.1 release.
Parameters
typesTypes array
sizeSize of the types array
respResponse descriptor
Returns
Status code

Implements InferenceEngine::IShapeInferExtension.

§ 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::IShapeInferExtension.

§ SetLogCallback()

void InferenceEngine::Extension::SetLogCallback ( InferenceEngine::IErrorListener listener)
inlineoverridevirtualnoexcept

Sets a log callback that is used to track what is going on inside.

Deprecated:
IErrorListener is not used anymore. StatusCode is provided in case of unexpected situations The method will be removed in 2021.1 release.
Parameters
listenerLogging listener

Reimplemented from InferenceEngine::IShapeInferExtension.


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