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 cnn Layer. 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 cnn Layer. More...
 

Protected Attributes

InferenceEngine::details::SOPointer< IExtension actual
  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
name Full 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.

Parameters
factory Factory with implementations
cnnLayer A layer to get the factory for
resp Response descriptor
Returns
Status code

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

Parameters
types Types array
size Size of the types array
resp Response descriptor
Returns
Status code

Implements 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 cnn Layer.

Parameters
impl the vector with implementations which is ordered by priority
resp response descriptor
Returns
status code

Implements InferenceEngine::IShapeInferExtension.

§ GetVersion()

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

Gets the extension version information.

Parameters
versionInfo A 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.

Parameters
listener Logging listener

Implements InferenceEngine::IShapeInferExtension.


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