openvino.runtime.Output#
- class openvino.runtime.Output#
Bases:
pybind11_objectopenvino.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)This method is called when a class is subclassed.
__le__(self, arg0)__lt__(self, arg0)__ne__(self, arg0)__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().
_from_node(self)add_names(self, names)Add tensor names associated with this output.
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.
set_names(self, names)Set tensor names associated with this output.
Attributes
- __class__#
alias of
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#
- add_names(self: openvino._pyopenvino.Output, names: set[str]) None#
Add tensor names associated with this output.
- Parameters:
names (Set[str]) – Set of tensor names.
- 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:
- 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:
- 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:
- 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:
- 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:
- 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:
- 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#
- set_names(self: openvino._pyopenvino.Output, names: set[str]) None#
Set tensor names associated with this output.
- Parameters:
names (Set[str]) – Set of tensor names.
- property shape#
- property target_inputs#
- property tensor#