openvino.runtime.passes.Manager

class openvino.runtime.passes.Manager

Bases: pybind11_builtins.pybind11_object

openvino.runtime.passes.Manager wraps ov::pass::Manager using ManagerWrapper

__init__(self: openvino.pyopenvino.passes.Manager) → 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)

__init_subclass__

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)

Create and return a new object.

__reduce__()

Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.

__repr__()

Return repr(self).

__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().

register_pass(*args, **kwargs)

Overloaded function.

run_passes(self, arg0)

set_per_pass_validation(self, arg0)

__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__(self: openvino.pyopenvino.passes.Manager) → 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)

Create and return a new object. See help(type) for accurate signature.

__reduce__()

Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.

__repr__()

Return repr(self).

__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).

register_pass(*args, **kwargs)

Overloaded function.

  1. register_pass(self: openvino.pyopenvino.passes.Manager, pass_name: str) -> None

    Set the type of register pass for pass manager.

    :param pass_name : String to set the type of a pass. :type pass_name: str

    //

  2. register_pass(self: openvino.pyopenvino.passes.Manager, pass_name: str, output_files: Tuple[str, str], version: str = ‘UNSPECIFIED’) -> None

    Set the type of register pass for pass manager.

    param pass_name

    String to set the type of a pass.

    type pass_name

    str

    param output_files

    Tuple which contains paths where .xml and .bin files will be saved.

    type output_files

    Tuple[str, str]

    param version

    Sets the version of the IR which will be generated. Supported versions are:

    • “UNSPECIFIED” (default) : Use the latest or function version

    • “IR_V10” : v10 IR

    • “IR_V11” : v11 IR

    type version

    str

    1. Default Version

      pass_manager = Manager() pass_manager.register_pass(“Serialize”, output_files=(“example.xml”, “example.bin”))

    2. IR version 11

      pass_manager = Manager() pass_manager.register_pass(“Serialize”, output_files=(“example.xml”, “example.bin”), version=”IR_V11”)

    //

  3. register_pass(self: openvino.pyopenvino.passes.Manager, pass_name: str, xml_path: str, bin_path: str, version: str = ‘UNSPECIFIED’) -> None

    Set the type of register pass for pass manager.

    param pass_name

    String to set the type of a pass.

    type pass_name

    str

    param xml_path

    Path where *.xml file will be saved.

    type xml_path

    str

    param bin_path

    Path where *.bin file will be saved.

    type bin_path

    str

    param version

    Sets the version of the IR which will be generated. Supported versions are:

    • “UNSPECIFIED” (default) : Use the latest or function version

    • “IR_V10” : v10 IR

    • “IR_V11” : v11 IR

    type version

    str

    1. Default Version

      pass_manager = Manager() pass_manager.register_pass(“Serialize”, xml_path=”example.xml”, bin_path=”example.bin”)

    2. IR version 11

      pass_manager = Manager() pass_manager.register_pass(“Serialize”, xml_path=”example.xml”, bin_path=”example.bin”, version=”IR_V11”)

    //

run_passes(self: openvino.pyopenvino.passes.Manager, arg0: openvino.pyopenvino.Model) → None
set_per_pass_validation(self: openvino.pyopenvino.passes.Manager, arg0: bool) → None