This class is a C++ helper to work with objects created using extensions. More...
#include <ie_extension.h>
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< IExtension > | actual |
A SOPointer instance to the loaded templated object. | |
This class is a C++ helper to work with objects created using extensions.
|
inlineexplicit |
Loads extension from a shared library.
name | Full or relative path to extension library |
|
inlineoverridevirtualnoexcept |
Gets the factory with implementations for a given layer.
factory | Factory with implementations |
cnnLayer | A layer to get the factory for |
resp | Response descriptor |
Reimplemented from InferenceEngine::IExtension.
|
inlineoverridevirtual |
Returns implementation for specific nGraph op.
node | shared pointer to nGraph op |
implType | implementation type |
Reimplemented from InferenceEngine::IExtension.
|
inlineoverridevirtual |
Returns vector of implementation types.
node | shared pointer to nGraph op |
Reimplemented from InferenceEngine::IExtension.
|
overridevirtual |
Returns operation sets This method throws an exception if it was not implemented.
Reimplemented from InferenceEngine::IExtension.
|
inlineoverridevirtualnoexcept |
Gets the array with types of layers which are included in the extension.
types | Types array |
size | Size of the types array |
resp | Response descriptor |
Reimplemented from InferenceEngine::IExtension.
|
inlineoverridevirtualnoexcept |
Gets shape propagation implementation for the given string-type of CNNLayer.
impl | the vector with implementations which is ordered by priority |
type | A type of CNNLayer |
resp | response descriptor |
Implements InferenceEngine::IShapeInferExtension.
|
inlineoverridevirtualnoexcept |
Gets the array with types of layers which are included in the extension.
types | Types array |
size | Size of the types array |
resp | Response descriptor |
Implements InferenceEngine::IShapeInferExtension.
|
inlineoverridevirtualnoexcept |
Gets the extension version information.
versionInfo | A pointer to version info, set by the plugin |
Implements InferenceEngine::IShapeInferExtension.
|
inlineoverridevirtualnoexcept |
Sets a log callback that is used to track what is going on inside.
listener | Logging listener |
Reimplemented from InferenceEngine::IShapeInferExtension.