openvino.runtime.Output

class openvino.runtime.Output

Bases: pybind11_builtins.pybind11_object

openvino.runtime.Output represents port/node output.

__init__(*args, **kwargs)

Methods

__copy__(self)

__deepcopy__(self, arg0)

__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__eq__(self, arg0)

__format__(format_spec, /)

Default object formatter.

__ge__(self, arg0)

__getattribute__(name, /)

Return getattr(self, name).

__gt__(self, arg0)

__hash__(self)

__init__(*args, **kwargs)

__init_subclass__

This method is called when a class is subclassed.

__le__(self, arg0)

__lt__(self, arg0)

__ne__(self, arg0)

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

__subclasshook__

Abstract classes can override this to customize issubclass().

_from_node(self)

get_any_name(self)

One of the tensor names associated with this output.

get_element_type(self)

The element type of the output referred to by this output handle.

get_index(self)

The index of the output referred to by this output handle.

get_names(self)

The tensor names associated with this output.

get_node(self)

Get node referenced by this output handle.

get_partial_shape(self)

The partial shape of the output referred to by this output handle.

get_rt_info(self)

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

get_shape(self)

The shape of the output referred to by this output handle.

get_target_inputs(self)

A set containing handles for all inputs, targeted by the output, referenced by this output handle.

get_tensor(self)

A reference to the tensor descriptor for this output.

remove_target_input(self, target_input)

Removes a target input from the output referenced by this output handle.

replace(self, replacement)

Replace all users of this value with replacement.

Attributes

any_name

element_type

index

names

node

partial_shape

rt_info

shape

target_inputs

tensor

__class__

alias of pybind11_builtins.pybind11_type

__copy__(self: openvino._pyopenvino.Output) openvino._pyopenvino.Output
__deepcopy__(self: openvino._pyopenvino.Output, arg0: dict) None
__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__eq__(self: openvino._pyopenvino.Output, arg0: openvino._pyopenvino.Output) bool
__format__(format_spec, /)

Default object formatter.

__ge__(self: openvino._pyopenvino.Output, arg0: openvino._pyopenvino.Output) bool
__getattribute__(name, /)

Return getattr(self, name).

__gt__(self: openvino._pyopenvino.Output, arg0: openvino._pyopenvino.Output) bool
__hash__(self: openvino._pyopenvino.Output) int
__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__(self: openvino._pyopenvino.Output, arg0: openvino._pyopenvino.Output) bool
__lt__(self: openvino._pyopenvino.Output, arg0: openvino._pyopenvino.Output) bool
__ne__(self: openvino._pyopenvino.Output, arg0: openvino._pyopenvino.Output) bool
__new__(**kwargs)
__reduce__()

Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.

__repr__(self: openvino._pyopenvino.Output) 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).

_from_node(self: openvino._pyopenvino.Node) openvino._pyopenvino.Output
property any_name
property element_type
get_any_name(self: openvino._pyopenvino.Output) str

One of the tensor names associated with this output. Note: first name in lexicographical order.

Returns

Tensor name as string.

Return type

str

get_element_type(self: openvino._pyopenvino.Output) openvino._pyopenvino.Type

The element type of the output referred to by this output handle.

Returns

Type of the output.

Return type

openvino.runtime.Type

get_index(self: openvino._pyopenvino.Output) int

The index of the output referred to by this output handle.

Returns

Index value as integer.

Return type

int

get_names(self: openvino._pyopenvino.Output) Set[str]

The tensor names associated with this output.

Returns

Set of tensor names.

Return type

Set[str]

get_node(self: openvino._pyopenvino.Output) openvino._pyopenvino.Node

Get node referenced by this output handle.

Returns

Node object referenced by this output handle.

Return type

openvino.runtime.Node

get_partial_shape(self: openvino._pyopenvino.Output) openvino._pyopenvino.PartialShape

The partial shape of the output referred to by this output handle.

Returns

Copy of PartialShape of the output.

Return type

openvino.runtime.PartialShape

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

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

Returns

A dictionary of user defined data.

Return type

openvino.runtime.RTMap

get_shape(self: openvino._pyopenvino.Output) openvino._pyopenvino.Shape

The shape of the output referred to by this output handle.

Returns

Copy of Shape of the output.

Return type

openvino.runtime.Shape

get_target_inputs(self: openvino._pyopenvino.Output) Set[openvino._pyopenvino.Input]

A set containing handles for all inputs, targeted by the output, referenced by this output handle.

Returns

Set of Inputs.

Return type

Set[openvino.runtime.Input]

get_tensor(self: openvino._pyopenvino.Output) openvino._pyopenvino.DescriptorTensor

A reference to the tensor descriptor for this output.

Returns

Tensor of the output.

Return type

openvino._pyopenvino.DescriptorTensor

property index
property names
property node
property partial_shape
remove_target_input(self: openvino._pyopenvino.Output, target_input: openvino._pyopenvino.Input) None

Removes a target input from the output referenced by this output handle.

Parameters

target_input (openvino.runtime.Output) – The target input to remove.

replace(self: openvino._pyopenvino.Output, replacement: openvino._pyopenvino.Output) None

Replace all users of this value with replacement.

Parameters

replacement (openvino.runtime.Output) – The node that is a replacement.

property rt_info
property shape
property target_inputs
property tensor