Class ov::frontend::FrontEndManager#
-
class FrontEndManager#
Frontend management class, loads available frontend plugins on construction Allows load of frontends for particular framework, register new and list available frontends This is a main frontend entry point for client applications.
Public Functions
-
FrontEndManager()#
Default constructor. Searches and loads of available frontends.
-
FrontEndManager(FrontEndManager&&) noexcept#
Default move constructor.
-
FrontEndManager &operator=(FrontEndManager&&) noexcept#
Default move assignment operator.
-
~FrontEndManager()#
Default destructor.
-
FrontEnd::Ptr load_by_framework(const std::string &framework)#
Loads frontend by name of framework and capabilities.
- Parameters:
framework – Framework name. Throws exception if name is not in list of available frontends
- Returns:
Frontend interface for further loading of models
-
template<typename ...Types>
inline FrontEnd::Ptr load_by_model(const Types&... vars)# Loads frontend by model fragments described by each FrontEnd documentation. Selects and loads appropriate frontend depending on model file extension and other file info (header)
- Parameters:
vars – Any number of parameters of any type. What kind of parameters are accepted is determined by each FrontEnd individually, typically it is std::string containing path to the model file. For more information please refer to specific FrontEnd documentation.
- Returns:
Frontend interface for further loading of model. Returns ‘nullptr’ if no suitable frontend is found
-
std::vector<std::string> get_available_front_ends()#
Gets list of registered frontends. Any not loaded frontends will be loaded by this call.
-
void register_front_end(const std::string &name, FrontEndFactory creator)#
Register frontend with name and factory creation method.
- Parameters:
name – Name of front end
creator – Creation factory callback. Will be called when frontend is about to be created
-
void register_front_end(const std::string &name, const std::string &library_path)#
Register frontend with name and factory loaded from provided library.
- Parameters:
name – Name of front end
library_path – Path (absolute or relative) or name of a frontend library. If name is provided, depending on platform, it will be wrapped with shared library suffix and prefix to identify library full name
-
FrontEndManager()#