class ov::frontend::FrontEndManager

Overview

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. More…

#include <manager.hpp>

class FrontEndManager
{
public:
    // construction

    FrontEndManager();
    FrontEndManager(FrontEndManager&&);

    // methods

    FrontEndManager& operator = (FrontEndManager&&);
    FrontEnd::Ptr load_by_framework(const std::string& framework);

    template <typename... Types>
    FrontEnd::Ptr load_by_model(const Types&... vars);

    std::vector<std::string> get_available_front_ends();
    void register_front_end(const std::string& name, FrontEndFactory creator);
    FRONTEND_API FrontEnd::Ptr load_by_model(const std::vector<ov::Any>& variants);
};

Detailed Documentation

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.

Construction

FrontEndManager()

Default constructor. Searches and loads of available frontends.

FrontEndManager(FrontEndManager&&)

Default move constructor.

Methods

FrontEndManager& operator = (FrontEndManager&&)

Default move assignment operator.

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