openvino.frontend.FrontEnd#
- class openvino.frontend.FrontEnd(fe: FrontEnd)#
- Bases: - FrontEnd- __init__(self: openvino._pyopenvino.FrontEnd, other: openvino._pyopenvino.FrontEnd) None#
 - 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__(self, other)- 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, enable_mmap)- Loads an input model. - normalize(self, model)- Runs normalization passes on function that was loaded with partial conversion. - supported(self, model)- Checks if model type is supported. - Attributes - __class__#
- alias of - 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__(self: openvino._pyopenvino.FrontEnd, other: openvino._pyopenvino.FrontEnd) None#
 - __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_cxxabi1014__ = <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: list[openvino._pyopenvino.Extension]) -> None - Add extensions defined by objects inheriting from Extension used in order to extend capabilities of Frontend. - param extension:
- Provided extension objects. 
- type extension:
- List[Extension] 
 
- add_extension(self: openvino._pyopenvino.FrontEnd, arg0: object) -> 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, Path 
 
 
 - 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: object, enable_mmap: bool = True) ov::frontend::InputModel#
- Loads an input model. - Parameters:
- path (Any) – Object describing the model. It can be path to model file. 
- enable_mmap (boolean) – Use mmap feature to map memory of a model’s weights instead of reading directly. Optional. The default value is true. 
 
- 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 
 - supported(self: openvino._pyopenvino.FrontEnd, model: object) bool#
- Checks if model type is supported. - Parameters:
- model (Any) – Object describing the model. It can be path to model file. 
- Returns:
- True if model type is supported, otherwise False. 
- Return type:
- bool