openvino.frontend.FrontEnd¶
- class openvino.frontend.FrontEnd¶
Bases:
pybind11_builtins.pybind11_object
openvino.frontend.FrontEnd wraps ov::frontend::FrontEnd
- __init__(*args, **kwargs)¶
Methods
__delattr__
(name, /)Implement delattr(self, name).
__dir__
()Default dir() implementation.
__eq__
(value, /)Return self==value.
__format__
(format_spec, /)Default object formatter.
__ge__
(value, /)Return self>=value.
__getattribute__
(name, /)Return getattr(self, name).
__gt__
(value, /)Return self>value.
__hash__
()Return hash(self).
__init__
(*args, **kwargs)This method is called when a class is subclassed.
__le__
(value, /)Return self<=value.
__lt__
(value, /)Return self<value.
__ne__
(value, /)Return self!=value.
__new__
(**kwargs)Helper for pickle.
__reduce_ex__
(protocol, /)Helper for pickle.
__repr__
(self)__setattr__
(name, value, /)Implement setattr(self, name, value).
Size of object in memory, in bytes.
__str__
()Return str(self).
Abstract classes can override this to customize issubclass().
add_extension
(*args, **kwargs)Overloaded function.
convert
(*args, **kwargs)Overloaded function.
convert_partially
(self, model)Convert only those parts of the model that can be converted leaving others as-is.
decode
(self, model)Convert operations with one-to-one mapping with decoding nodes.
get_name
(self)Gets name of this FrontEnd.
load
(self, path)Loads an input model by specified model file path.
normalize
(self, model)Runs normalization passes on function that was loaded with partial conversion.
Attributes
- __class__¶
alias of
pybind11_builtins.pybind11_type
- __delattr__(name, /)¶
Implement delattr(self, name).
- __dir__()¶
Default dir() implementation.
- __eq__(value, /)¶
Return self==value.
- __format__(format_spec, /)¶
Default object formatter.
- __ge__(value, /)¶
Return self>=value.
- __getattribute__(name, /)¶
Return getattr(self, name).
- __gt__(value, /)¶
Return self>value.
- __hash__()¶
Return hash(self).
- __init__(*args, **kwargs)¶
- __init_subclass__()¶
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- __le__(value, /)¶
Return self<=value.
- __lt__(value, /)¶
Return self<value.
- __ne__(value, /)¶
Return self!=value.
- __new__(**kwargs)¶
- __pybind11_module_local_v4_gcc_libstdcpp_cxxabi1011__ = <capsule object NULL>¶
- __reduce__()¶
Helper for pickle.
- __reduce_ex__(protocol, /)¶
Helper for pickle.
- __repr__(self: openvino.pyopenvino.FrontEnd) str ¶
- __setattr__(name, value, /)¶
Implement setattr(self, name, value).
- __sizeof__()¶
Size of object in memory, in bytes.
- __str__()¶
Return str(self).
- __subclasshook__()¶
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
- add_extension(*args, **kwargs)¶
Overloaded function.
add_extension(self: openvino.pyopenvino.FrontEnd, arg0: openvino.pyopenvino.Extension) -> None
Add extension defined by an object inheriting from Extension used in order to extend capabilities of Frontend.
- param extension
Provided extension object.
- type extension
Extension
add_extension(self: openvino.pyopenvino.FrontEnd, arg0: str) -> None
Add extension defined in external library indicated by a extension_path used in order to extend capabilities of Frontend.
- param extension_path
A path to extension.
- type extension_path
str
- convert(*args, **kwargs)¶
Overloaded function.
convert(self: openvino.pyopenvino.FrontEnd, model: ov::frontend::InputModel) -> openvino.pyopenvino.Model
Completely convert and normalize entire function, throws if it is not possible.
- param model
Input model.
- type model
openvino.frontend.InputModel
- return
Fully converted OpenVINO Model.
- rtype
openvino.runtime.Model
convert(self: openvino.pyopenvino.FrontEnd, model: openvino.pyopenvino.Model) -> None
Completely convert the remaining, not converted part of a function.
- param model
Partially converted OpenVINO model.
- type model
openvino.frontend.Model
- return
Fully converted OpenVINO Model.
- rtype
openvino.runtime.Model
- convert_partially(self: openvino.pyopenvino.FrontEnd, model: ov::frontend::InputModel) openvino.pyopenvino.Model ¶
Convert only those parts of the model that can be converted leaving others as-is. Converted parts are not normalized by additional transformations; normalize function or another form of convert function should be called to finalize the conversion process.
:param model : Input model. :type model: openvino.frontend.InputModel :return: Partially converted OpenVINO Model. :rtype: openvino.runtime.Model
- decode(self: openvino.pyopenvino.FrontEnd, model: ov::frontend::InputModel) openvino.pyopenvino.Model ¶
Convert operations with one-to-one mapping with decoding nodes. Each decoding node is an nGraph node representing a single FW operation node with all attributes represented in FW-independent way.
:param model : Input model. :type model: openvino.frontend.InputModel :return: OpenVINO Model after decoding. :rtype: openvino.runtime.Model
- get_name(self: openvino.pyopenvino.FrontEnd) str ¶
Gets name of this FrontEnd. Can be used by clients if frontend is selected automatically by FrontEndManager::load_by_model.
- Returns
Current frontend name. Returns empty string if not implemented.
- Return type
str
- load(self: openvino.pyopenvino.FrontEnd, path: str) ov::frontend::InputModel ¶
Loads an input model by specified model file path.
- Parameters
path (str) – Main model file path.
- Returns
Loaded input model.
- Return type
- normalize(self: openvino.pyopenvino.FrontEnd, model: openvino.pyopenvino.Model) None ¶
Runs normalization passes on function that was loaded with partial conversion.
:param model : Partially converted OpenVINO model. :type model: openvino.runtime.Model