_pyngraph.Node

class _pyngraph.Node

Bases: pybind11_builtins.pybind11_object

ngraph.impl.Node wraps ngraph::Node

__init__(*args, **kwargs)

Methods

__add__(self, arg0)

__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__div__(self, arg0)

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

__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__mul__(self, arg0)

__ne__(value, /)

Return self!=value.

__new__(**kwargs)

__reduce__()

Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.

__repr__(self)

__setattr__(name, value, /)

Implement setattr(self, name, value).

__sizeof__()

Size of object in memory, in bytes.

__str__()

Return str(self).

__sub__(self, arg0)

__subclasshook__

Abstract classes can override this to customize issubclass().

__truediv__(self, arg0)

_get_attributes(self)

_set_attribute(self, arg0, arg1)

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_name(self)

Get the unique name of the node

get_output_element_type(self, i)

Returns the element type for output i

get_output_partial_shape(self, i)

Returns the partial shape for output i

get_output_shape(self, i)

Returns the shape for output i

get_output_size(self)

Returns the number of outputs from the node.

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.

get_version(self)

Returns operation's version of the node.

input(self, input_index)

A handle to the input_index input of this node.

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

__pybind11_module_local_v4_gcc_libstdcpp_cxxabi1014__

friendly_name

name

rt_info

shape

type_info

version

__add__(self: _pyngraph.Node, arg0: _pyngraph.Node) ov::op::v1::Add
__class__

alias of pybind11_builtins.pybind11_type

__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__div__(self: _pyngraph.Node, arg0: _pyngraph.Node) ov::op::v1::Divide
__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.

__mul__(self: _pyngraph.Node, arg0: _pyngraph.Node) ov::op::v1::Multiply
__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: _pyngraph.Node) str
__setattr__(name, value, /)

Implement setattr(self, name, value).

__sizeof__()

Size of object in memory, in bytes.

__str__()

Return str(self).

__sub__(self: _pyngraph.Node, arg0: _pyngraph.Node) ov::op::v1::Subtract
__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__(self: _pyngraph.Node, arg0: _pyngraph.Node) ov::op::v1::Divide
_get_attributes(self: _pyngraph.Node) dict
_set_attribute(self: _pyngraph.Node, arg0: str, arg1: object) None
property friendly_name
get_attributes(self: _pyngraph.Node) dict
get_element_type(self: _pyngraph.Node) _pyngraph.Type

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

get_element_typeType

Type of the output.

get_friendly_name(self: _pyngraph.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.

get_namestr

Friendly name of the node.

get_name(self: _pyngraph.Node) str

Get the unique name of the node

get_namestr

Unique name of the node.

get_output_element_type(self: _pyngraph.Node, i: int) _pyngraph.Type

Returns the element type for output i

iint

Index of the output.

get_output_element_typeType

Type of the output i

get_output_partial_shape(self: _pyngraph.Node, i: int) _pyngraph.PartialShape

Returns the partial shape for output i

iint

Index of the output.

get_output_partial_shapePartialShape

PartialShape of the output i

get_output_shape(self: _pyngraph.Node, i: int) _pyngraph.Shape

Returns the shape for output i

iint

Index of the output.

get_output_shapeShape

Shape of the output i

get_output_size(self: _pyngraph.Node) int

Returns the number of outputs from the node.

get_element_typeint

Number of outputs.

get_rt_info(self: _pyngraph.Node) _pyngraph.PyRTMap

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

get_rt_infoPyRTMap

A dictionary of user defined data.

get_type_info(self: _pyngraph.Node) ov::DiscreteTypeInfo
get_type_name(self: _pyngraph.Node) str

Returns Type’s name from the node.

get_type_namestr

String repesenting Type’s name.

get_version(self: _pyngraph.Node) int

Returns operation’s version of the node.

get_versionint

Operation version.

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

A handle to the input_index input of this node.

input_indexint

Index of Input.

inputInput

Input of this node.

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

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

inputsList[Input]

List of node’s inputs.

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

A handle to the output_index output of this node.

output_indexint

Index of Output.

inputOutput

Output of this node.

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

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

inputsList[Output]

List of node’s outputs.

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

Overloaded function.

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

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

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

set_attribute(self: _pyngraph.Node, arg0: str, arg1: object) None
set_friendly_name(self: _pyngraph.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.

namestr

Friendly name to set.

property shape
property type_info
validate(self: _pyngraph.Node) None
property version