openvino.runtime.passes.WrapType

class openvino.runtime.passes.WrapType

Bases: openvino._pyopenvino.Node

openvino.runtime.passes.WrapType wraps ov::pass::pattern::op::WrapType

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str) -> None

    Create WrapType with given node type.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

  2. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, pred: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node type and predicate.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  3. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, input: ov::Output<ov::Node>) -> None

    Create WrapType with given node type and input node.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param input

    Node output.

    type input

    openvino.runtime.Output

  4. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, input: openvino._pyopenvino.Node) -> None

    Create WrapType with given node type and input node.

    param type_name

    node type. For example: opset8.Abs

    type type_name

    str

    param input

    Input node.

    type input

    openvino.runtime.Node

  5. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, input: ov::Output<ov::Node>, predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node type, input node and predicate.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param input

    Node output.

    type input

    openvino.runtime.Output

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  6. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, input: openvino._pyopenvino.Node, predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node type, input node and predicate.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param input

    Input node.

    type input

    openvino.runtime.Node

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  7. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, inputs: List[ov::Output<ov::Node>]) -> None

    Create WrapType with given node type and input nodes.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param inputs

    Node outputs.

    type inputs

    List[openvino.runtime.Output]

  8. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, inputs: List[openvino._pyopenvino.Node]) -> None

    Create WrapType with given node type and input nodes.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param inputs

    Input nodes.

    type inputs

    List[openvino.runtime.Node]

  9. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, inputs: List[ov::Output<ov::Node>], predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node type, input nodes and predicate.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param inputs

    Node outputs.

    type inputs

    List[openvino.runtime.Output]

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  10. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, inputs: List[openvino._pyopenvino.Node], predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node type, input nodes and predicate.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param inputs

    Input nodes.

    type inputs

    List[openvino.runtime.Node]

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  11. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str]) -> None

    Create WrapType with given node types.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

  12. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node types and predicate.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  13. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], input: ov::Output<ov::Node>) -> None

    Create WrapType with given node types and input.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param input

    Node output.

    type input

    openvino.runtime.Output

  14. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], input: openvino._pyopenvino.Node) -> None

    Create WrapType with given node types and input.

    param type_name

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_name

    List[str]

    param input

    Input node.

    type input

    openvino.runtime.Node

  15. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], input: ov::Output<ov::Node>, predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node types, input and predicate.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param input

    Node output.

    type input

    openvino.runtime.Output

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  16. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], input: openvino._pyopenvino.Node, predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node types, input and predicate.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param input

    Input node.

    type input

    openvino.runtime.Node

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  17. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], inputs: List[ov::Output<ov::Node>]) -> None

    Create WrapType with given node types and input.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param inputs

    Nodes outputs.

    type inputs

    List[openvino.runtime.Output]

  18. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], inputs: List[openvino._pyopenvino.Node]) -> None

    Create WrapType with given node types and inputs.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param inputs

    Input nodes.

    type inputs

    List[openvino.runtime.Node]

  19. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], inputs: List[ov::Output<ov::Node>], predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node types, inputs and predicate.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param inputs

    Nodes outputs.

    type inputs

    List[openvino.runtime.Output]

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  20. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], inputs: List[openvino._pyopenvino.Node], predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node types, inputs and predicate.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param inputs

    Input nodes.

    type inputs

    List[openvino.runtime.Node]

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

Methods

__add__(right_node[, auto_broadcast, name])

Return node which applies f(A,B) = A+B to the input nodes element-wise.

__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__div__(right_node[, auto_broadcast, name])

Return node which applies f(x) = A/B to the input nodes element-wise.

__eq__(right_node[, auto_broadcast, name])

Return node which checks if input nodes are equal element-wise.

__format__(format_spec, /)

Default object formatter.

__ge__(right_node[, auto_broadcast, name])

Return node which checks if left node is greater or equal to the right node element-wise.

__getattr__(self, arg0)

__getattribute__(name, /)

Return getattr(self, name).

__gt__(right_node[, auto_broadcast, name])

Return node which checks if left input node is greater than the right node element-wise.

__hash__()

Return hash(self).

__init__(*args, **kwargs)

Overloaded function.

__init_subclass__

This method is called when a class is subclassed.

__le__(right_node[, auto_broadcast, name])

Return node which checks if left input node is less or equal the right node element-wise.

__lt__(right_node[, auto_broadcast, name])

Return node which checks if left input node is less than the right node element-wise.

__mul__(right_node[, auto_broadcast, name])

Return node which applies f(A,B) = A*B to the input nodes elementwise.

__ne__(right_node[, auto_broadcast, name])

Return node which checks if input nodes are unequal element-wise.

__new__(**kwargs)

__radd__(right)

__rdiv__(right)

__reduce__()

Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.

__repr__(self)

__rmul__(right)

__rsub__(right)

__rtruediv__(right)

__setattr__(name, value, /)

Implement setattr(self, name, value).

__sizeof__()

Size of object in memory, in bytes.

__str__()

Return str(self).

__sub__(right_node[, auto_broadcast, name])

Return node which applies f(x) = A-B to the input nodes element-wise.

__subclasshook__

Abstract classes can override this to customize issubclass().

__truediv__(right_node[, auto_broadcast, name])

Return node which applies f(x) = A/B to the input nodes element-wise.

evaluate(*args, **kwargs)

Overloaded function.

get_attributes(self)

get_element_type(self)

Checks that there is exactly one output and returns it's element type.

get_friendly_name(self)

Gets the friendly name for a node.

get_input_size(self)

Returns the number of inputs to the node.

get_input_tensor(self, index)

Returns the tensor for the node's input with index i

get_name(self)

Get the unique name of the node

get_output_element_type(self, index)

Returns the element type for output i

get_output_partial_shape(self, index)

Returns the partial shape for output i

get_output_shape(self, index)

Returns the shape for output i

get_output_size(self)

Returns the number of outputs from the node.

get_output_tensor(self, index)

Returns the tensor for output i

get_rt_info(self)

Returns PyRTMap which is a dictionary of user defined runtime info.

get_type_info(self)

get_type_name(self)

Returns Type's name from the node.

input(self, input_index)

A handle to the input_index input of this node.

input_value(self, index)

Returns input of the node with index i

input_values(self)

Returns list of node's inputs, in order.

inputs(self)

A list containing a handle for each of this node's inputs, in order.

output(self, output_index)

A handle to the output_index output of this node.

outputs(self)

A list containing a handle for each of this node's outputs, in order.

set_argument(self, arg0, arg1)

set_arguments(*args, **kwargs)

Overloaded function.

set_attribute(self, arg0, arg1)

set_friendly_name(self, name)

Sets a friendly name for a node.

validate(self)

Attributes

friendly_name

name

rt_info

shape

type_info

__add__(right_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], auto_broadcast: str = 'NUMPY', name: Optional[str] = None) openvino._pyopenvino.Node

Return node which applies f(A,B) = A+B to the input nodes element-wise.

Parameters
  • left_node – The first input node for add operation.

  • right_node – The second input node for add operation.

  • auto_broadcast – The type of broadcasting specifies rules used for auto-broadcasting of input tensors. Defaults to “NUMPY”.

  • name – The optional name for output new node.

Returns

The node performing element-wise addition.

__class__

alias of pybind11_builtins.pybind11_type

__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__div__(right_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], auto_broadcast: str = 'NUMPY', name: Optional[str] = None) openvino._pyopenvino.Node

Return node which applies f(x) = A/B to the input nodes element-wise.

Parameters
  • left_node – The node providing dividend data.

  • right_node – The node providing divisor data.

  • auto_broadcast – Specifies rules used for auto-broadcasting of input tensors.

  • name – Optional name for output node.

Returns

The node performing element-wise division.

__eq__(right_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], auto_broadcast: str = 'NUMPY', name: Optional[str] = None) openvino._pyopenvino.Node

Return node which checks if input nodes are equal element-wise.

Parameters
  • left_node – The first input node for equal operation.

  • right_node – The second input node for equal operation.

  • auto_broadcast – The type of broadcasting specifies rules used for auto-broadcasting of input tensors.

  • name – The optional name for output new node.

Returns

The node performing element-wise equality check.

__format__(format_spec, /)

Default object formatter.

__ge__(right_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], auto_broadcast: str = 'NUMPY', name: Optional[str] = None) openvino._pyopenvino.Node

Return node which checks if left node is greater or equal to the right node element-wise.

Parameters
  • left_node – The first input node providing data.

  • right_node – The second input node providing data.

  • auto_broadcast – The type of broadcasting specifies rules used for auto-broadcasting of input tensors.

  • name – The optional new name for output node.

Returns

The node performing element-wise check whether left_node is greater than or equal right_node.

__getattr__(self: openvino._pyopenvino.Node, arg0: str) cpp_function
__getattribute__(name, /)

Return getattr(self, name).

__gt__(right_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], auto_broadcast: str = 'NUMPY', name: Optional[str] = None) openvino._pyopenvino.Node

Return node which checks if left input node is greater than the right node element-wise.

Parameters
  • left_node – The first input node providing data.

  • right_node – The second input node providing data.

  • auto_broadcast – The type of broadcasting specifies rules used for auto-broadcasting of input tensors.

  • name – The optional new name for output node.

Returns

The node performing element-wise check whether left_node is greater than right_node.

__hash__()

Return hash(self).

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str) -> None

    Create WrapType with given node type.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

  2. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, pred: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node type and predicate.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  3. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, input: ov::Output<ov::Node>) -> None

    Create WrapType with given node type and input node.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param input

    Node output.

    type input

    openvino.runtime.Output

  4. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, input: openvino._pyopenvino.Node) -> None

    Create WrapType with given node type and input node.

    param type_name

    node type. For example: opset8.Abs

    type type_name

    str

    param input

    Input node.

    type input

    openvino.runtime.Node

  5. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, input: ov::Output<ov::Node>, predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node type, input node and predicate.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param input

    Node output.

    type input

    openvino.runtime.Output

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  6. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, input: openvino._pyopenvino.Node, predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node type, input node and predicate.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param input

    Input node.

    type input

    openvino.runtime.Node

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  7. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, inputs: List[ov::Output<ov::Node>]) -> None

    Create WrapType with given node type and input nodes.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param inputs

    Node outputs.

    type inputs

    List[openvino.runtime.Output]

  8. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, inputs: List[openvino._pyopenvino.Node]) -> None

    Create WrapType with given node type and input nodes.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param inputs

    Input nodes.

    type inputs

    List[openvino.runtime.Node]

  9. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, inputs: List[ov::Output<ov::Node>], predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node type, input nodes and predicate.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param inputs

    Node outputs.

    type inputs

    List[openvino.runtime.Output]

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  10. __init__(self: openvino._pyopenvino.passes.WrapType, type_name: str, inputs: List[openvino._pyopenvino.Node], predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node type, input nodes and predicate.

    param type_name

    node type. For example: “opset8.Abs”

    type type_name

    str

    param inputs

    Input nodes.

    type inputs

    List[openvino.runtime.Node]

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  11. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str]) -> None

    Create WrapType with given node types.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

  12. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node types and predicate.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  13. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], input: ov::Output<ov::Node>) -> None

    Create WrapType with given node types and input.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param input

    Node output.

    type input

    openvino.runtime.Output

  14. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], input: openvino._pyopenvino.Node) -> None

    Create WrapType with given node types and input.

    param type_name

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_name

    List[str]

    param input

    Input node.

    type input

    openvino.runtime.Node

  15. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], input: ov::Output<ov::Node>, predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node types, input and predicate.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param input

    Node output.

    type input

    openvino.runtime.Output

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  16. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], input: openvino._pyopenvino.Node, predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node types, input and predicate.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param input

    Input node.

    type input

    openvino.runtime.Node

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  17. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], inputs: List[ov::Output<ov::Node>]) -> None

    Create WrapType with given node types and input.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param inputs

    Nodes outputs.

    type inputs

    List[openvino.runtime.Output]

  18. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], inputs: List[openvino._pyopenvino.Node]) -> None

    Create WrapType with given node types and inputs.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param inputs

    Input nodes.

    type inputs

    List[openvino.runtime.Node]

  19. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], inputs: List[ov::Output<ov::Node>], predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node types, inputs and predicate.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param inputs

    Nodes outputs.

    type inputs

    List[openvino.runtime.Output]

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

  20. __init__(self: openvino._pyopenvino.passes.WrapType, type_names: List[str], inputs: List[openvino._pyopenvino.Node], predicate: Callable[[ov::Output<ov::Node>], bool]) -> None

    Create WrapType with given node types, inputs and predicate.

    param type_names

    node types. For example: [“opset8.Abs”, “opset8.Relu”]

    type type_names

    List[str]

    param inputs

    Input nodes.

    type inputs

    List[openvino.runtime.Node]

    param predicate

    Function that performs additional checks for matching.

    type predicate

    function

__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__le__(right_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], auto_broadcast: str = 'NUMPY', name: Optional[str] = None) openvino._pyopenvino.Node

Return node which checks if left input node is less or equal the right node element-wise.

Parameters
  • left_node – The first input node providing data.

  • right_node – The second input node providing data.

  • auto_broadcast – The type of broadcasting specifies rules used for auto-broadcasting of input tensors.

  • name – The optional new name for output node.

Returns

The node performing element-wise check whether left_node is less than or equal the right_node.

__lt__(right_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], auto_broadcast: str = 'NUMPY', name: Optional[str] = None) openvino._pyopenvino.Node

Return node which checks if left input node is less than the right node element-wise.

Parameters
  • left_node – The first input node providing data.

  • right_node – The second input node providing data.

  • auto_broadcast – The type of broadcasting specifies rules used for auto-broadcasting of input tensors.

  • name – The optional new name for output node.

Returns

The node performing element-wise check whether left_node is less than the right_node.

__mul__(right_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], auto_broadcast: str = 'NUMPY', name: Optional[str] = None) openvino._pyopenvino.Node

Return node which applies f(A,B) = A*B to the input nodes elementwise.

Parameters
  • left_node – The first input node for multiply operation.

  • right_node – The second input node for multiply operation.

  • auto_broadcast – The type of broadcasting specifies rules used for auto-broadcasting of input tensors. Defaults to “NUMPY”.

  • name – The optional name for output new node.

Returns

The node performing element-wise multiplication.

__ne__(right_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], auto_broadcast: str = 'NUMPY', name: Optional[str] = None) openvino._pyopenvino.Node

Return node which checks if input nodes are unequal element-wise.

Parameters
  • left_node – The first input node for not-equal operation.

  • right_node – The second input node for not-equal operation.

  • auto_broadcast – The type of broadcasting specifies rules used for auto-broadcasting of input tensors.

  • name – The optional name for output new node.

Returns

The node performing element-wise inequality check.

__new__(**kwargs)
__radd__(right)
__rdiv__(right)
__reduce__()

Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.

__repr__(self: openvino._pyopenvino.passes.WrapType) str
__rmul__(right)
__rsub__(right)
__rtruediv__(right)
__setattr__(name, value, /)

Implement setattr(self, name, value).

__sizeof__()

Size of object in memory, in bytes.

__str__()

Return str(self).

__sub__(right_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], auto_broadcast: str = 'NUMPY', name: Optional[str] = None) openvino._pyopenvino.Node

Return node which applies f(x) = A-B to the input nodes element-wise.

Parameters
  • left_node – The node providing data for left hand side of operator.

  • right_node – The node providing data for right hand side of operator.

  • auto_broadcast – The type of broadcasting that specifies mapping of input tensor axes to output shape axes. Range of values: numpy, explicit.

  • name – The optional name for output node.

Returns

The new output node performing subtraction operation on both tensors element-wise.

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

__truediv__(right_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], auto_broadcast: str = 'NUMPY', name: Optional[str] = None) openvino._pyopenvino.Node

Return node which applies f(x) = A/B to the input nodes element-wise.

Parameters
  • left_node – The node providing dividend data.

  • right_node – The node providing divisor data.

  • auto_broadcast – Specifies rules used for auto-broadcasting of input tensors.

  • name – Optional name for output node.

Returns

The node performing element-wise division.

evaluate(*args, **kwargs)

Overloaded function.

  1. evaluate(self: openvino._pyopenvino.Node, output_values: List[ov::Tensor], input_values: List[ov::Tensor], evaluationContext: openvino._pyopenvino.RTMap) -> bool

    Evaluate the node on inputs, putting results in outputs

    param output_tensors

    Tensors for the outputs to compute. One for each result.

    type output_tensors

    List[openvino.runtime.Tensor]

    param input_tensors

    Tensors for the inputs. One for each inputs.

    type input_tensors

    List[openvino.runtime.Tensor]

    param evaluation_context

    Storage of additional settings and attributes that can be used

    when evaluating the function. This additional information can be shared across nodes. :type evaluation_context: openvino.runtime.RTMap :rtype: bool

  2. evaluate(self: openvino._pyopenvino.Node, output_values: List[ov::Tensor], input_values: List[ov::Tensor]) -> bool

    Evaluate the function on inputs, putting results in outputs

    param output_tensors

    Tensors for the outputs to compute. One for each result.

    type output_tensors

    List[openvino.runtime.Tensor]

    param input_tensors

    Tensors for the inputs. One for each inputs.

    type input_tensors

    List[openvino.runtime.Tensor]

    rtype

    bool

property friendly_name
get_attributes(self: openvino._pyopenvino.Node) dict
get_element_type(self: openvino._pyopenvino.Node) openvino._pyopenvino.Type

Checks that there is exactly one output and returns it’s element type.

Returns

Type of the output.

Return type

openvino.runtime.Type

get_friendly_name(self: openvino._pyopenvino.Node) str

Gets the friendly name for a node. If no friendly name has been set via set_friendly_name then the node’s unique name is returned.

Returns

Friendly name of the node.

Return type

str

get_input_size(self: openvino._pyopenvino.Node) int

Returns the number of inputs to the node.

Returns

Number of inputs.

Return type

int

get_input_tensor(self: openvino._pyopenvino.Node, index: int) ov::descriptor::Tensor

Returns the tensor for the node’s input with index i

Parameters

index (int) – Index of Input.

Returns

Tensor of the input i

Return type

openvino._pyopenvino.DescriptorTensor

get_name(self: openvino._pyopenvino.Node) str

Get the unique name of the node

Returns

Unique name of the node.

Return type

str

get_output_element_type(self: openvino._pyopenvino.Node, index: int) openvino._pyopenvino.Type

Returns the element type for output i

Parameters

index (int) – Index of the output.

Returns

Type of the output i

Return type

openvino.runtime.Type

get_output_partial_shape(self: openvino._pyopenvino.Node, index: int) openvino._pyopenvino.PartialShape

Returns the partial shape for output i

Parameters

index (int) – Index of the output.

Returns

PartialShape of the output i

Return type

openvino.runtime.PartialShape

get_output_shape(self: openvino._pyopenvino.Node, index: int) openvino._pyopenvino.Shape

Returns the shape for output i

Parameters

index – Index of the output.

Returns

Shape of the output i

Return type

openvino.runtime.Shape

get_output_size(self: openvino._pyopenvino.Node) int

Returns the number of outputs from the node.

Returns

Number of outputs.

Return type

int

get_output_tensor(self: openvino._pyopenvino.Node, index: int) ov::descriptor::Tensor

Returns the tensor for output i

Parameters

index (int) – Index of the output.

Returns

Tensor of the output i

Return type

openvino._pyopenvino.DescriptorTensor

get_rt_info(self: openvino._pyopenvino.Node) openvino._pyopenvino.RTMap

Returns PyRTMap which is a dictionary of user defined runtime info.

Returns

A dictionary of user defined data.

Return type

openvino.runtime.RTMap

get_type_info(self: openvino._pyopenvino.Node) ov::DiscreteTypeInfo
get_type_name(self: openvino._pyopenvino.Node) str

Returns Type’s name from the node.

Returns

String representing Type’s name.

Return type

str

input(self: openvino._pyopenvino.Node, input_index: int) ov::Input<ov::Node>

A handle to the input_index input of this node.

Parameters

input_index (int) – Index of Input.

Returns

Input of this node.

Return type

openvino.runtime.Input

input_value(self: openvino._pyopenvino.Node, index: int) ov::Output<ov::Node>

Returns input of the node with index i

Parameters

index (int) – Index of Input.

Returns

Input of this node.

Return type

openvino.runtime.Input

input_values(self: openvino._pyopenvino.Node) List[ov::Output<ov::Node>]

Returns list of node’s inputs, in order.

Returns

List of node’s inputs

Return type

List[openvino.runtime.Input]

inputs(self: openvino._pyopenvino.Node) List[ov::Input<ov::Node>]

A list containing a handle for each of this node’s inputs, in order.

Returns

List of node’s inputs.

Return type

List[openvino.runtime.Input]

property name
output(self: openvino._pyopenvino.Node, output_index: int) ov::Output<ov::Node>

A handle to the output_index output of this node.

Parameters

output_index (int) – Index of Output.

Returns

Output of this node.

Return type

openvino.runtime.Output

outputs(self: openvino._pyopenvino.Node) List[ov::Output<ov::Node>]

A list containing a handle for each of this node’s outputs, in order.

Returns

List of node’s outputs.

Return type

List[openvino.runtime.Output]

property rt_info
set_argument(self: openvino._pyopenvino.Node, arg0: int, arg1: ov::Output<ov::Node>) None
set_arguments(*args, **kwargs)

Overloaded function.

  1. set_arguments(self: openvino._pyopenvino.Node, arg0: List[openvino._pyopenvino.Node]) -> None

  2. set_arguments(self: openvino._pyopenvino.Node, arg0: List[ov::Output<ov::Node>]) -> None

  3. set_arguments(self: openvino._pyopenvino.Node, arg0: List[ov::Output<ov::Node>]) -> None

set_attribute(self: openvino._pyopenvino.Node, arg0: str, arg1: object) None
set_friendly_name(self: openvino._pyopenvino.Node, name: str) None

Sets a friendly name for a node. This does not overwrite the unique name of the node and is retrieved via get_friendly_name(). Used mainly for debugging. The friendly name may be set exactly once.

Parameters

name (str) – Friendly name to set.

property shape
property type_info
validate(self: openvino._pyopenvino.Node) None