Class InferenceEngine::Extension

class Extension : public InferenceEngine::IExtension

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

Deprecated:

The Inference Engine API is deprecated and will be removed in the 2024.0 release. For instructions on transitioning to the new API, please refer to https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html

Public Functions

explicit Extension(const std::string &name)

Loads extension from a shared library.

Parameters

name – Full or relative path to extension library

explicit Extension(const std::wstring &name)

Loads extension from a shared library.

Parameters

name – Full or relative path to extension library

inline virtual void GetVersion(const InferenceEngine::Version *&versionInfo) const noexcept override

Gets the extension version information.

Parameters

versionInfo – A pointer to version info, set by the plugin

inline virtual void Unload() noexcept override

Cleans the resources up.

virtual std::map<std::string, ngraph::OpSet> getOpSets() override

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

Returns

map of opset name to opset

inline virtual std::vector<std::string> getImplTypes(const std::shared_ptr<ngraph::Node> &node) override

Returns vector of implementation types.

Parameters

node – shared pointer to nGraph op

Returns

vector of strings

inline virtual ILayerImpl::Ptr getImplementation(const std::shared_ptr<ngraph::Node> &node, const std::string &implType) override

Returns implementation for specific nGraph op.

Parameters
  • node – shared pointer to nGraph op

  • implType – implementation type

Returns

shared pointer to implementation