openvino.frontend.Place#

class openvino.frontend.Place#

Bases: pybind11_object

openvino.frontend.Place wraps ov::frontend::Place

__init__(*args, **kwargs)#

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__(*args, **kwargs)

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

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

get_consuming_operations(self[, ...])

Returns references to all operation nodes that consume data from this place for specified output port.

get_consuming_ports(self)

Returns all input ports that consume data flows through this place.

get_input_port(self[, input_name, ...])

For operation node returns reference to an input port with specified name and index.

get_names(self)

All associated names (synonyms) that identify this place in the graph in a framework specific way.

get_output_port(self[, output_name, ...])

For operation node returns reference to an output port with specified name and index.

get_producing_operation(self[, input_name, ...])

Get an operation node place that immediately produces data for this place.

get_producing_port(self)

Returns a port that produces data for this place.

get_source_tensor(self[, input_name, ...])

Returns a tensor place that supplies data for this place; applicable for operations, input ports and input edges.

get_target_tensor(self[, output_name, ...])

Returns a tensor place that gets data from this place; applicable for operations, output ports and output edges.

is_equal(self, other)

Returns true if another place is the same as this place.

is_equal_data(self, other)

Returns true if another place points to the same data. Note: The same data means all places on path: output port -> output edge -> tensor -> input edge -> input port.

is_input(self)

Returns true if this place is input for a model.

is_output(self)

Returns true if this place is output for a model.

__class__#

alias of 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__(*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.

__ne__(value, /)#

Return self!=value.

__new__(**kwargs)#
__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).

get_consuming_operations(self: openvino._pyopenvino.Place, output_name: object = None, output_port_index: object = None) list[openvino._pyopenvino.Place]#

Returns references to all operation nodes that consume data from this place for specified output port. Note: It can be called for any kind of graph place searching for the first consuming operations.

Parameters:
  • output_name (str) – Name of output port group. May not be set if node has one output port group.

  • output_port_index (int) – If place is an operational node it specifies which output port should be considered May not be set if node has only one output port.

Returns:

A list with all operation node references that consumes data from this place

Return type:

List[openvino.frontend.Place]

get_consuming_ports(self: openvino._pyopenvino.Place) list[openvino._pyopenvino.Place]#

Returns all input ports that consume data flows through this place.

Returns:

Input ports that consume data flows through this place.

Return type:

List[openvino.frontend.Place]

get_input_port(self: openvino._pyopenvino.Place, input_name: object = None, input_port_index: object = None) openvino._pyopenvino.Place#

For operation node returns reference to an input port with specified name and index.

Parameters:
  • input_name (str) – Name of port group. May not be set if node has one input port group.

  • input_port_index (int) – Input port index in a group. May not be set if node has one input port in a group.

Returns:

Appropriate input port place.

Return type:

openvino.frontend.Place

get_names(self: openvino._pyopenvino.Place) list[str]#

All associated names (synonyms) that identify this place in the graph in a framework specific way.

Returns:

A vector of strings each representing a name that identifies this place in the graph. Can be empty if there are no names associated with this place or name cannot be attached.

Return type:

List[str]

get_output_port(self: openvino._pyopenvino.Place, output_name: object = None, output_port_index: object = None) openvino._pyopenvino.Place#

For operation node returns reference to an output port with specified name and index.

Parameters:
  • output_name (str) – Name of output port group. May not be set if node has one output port group.

  • output_port_index (int) – Output port index. May not be set if node has one output port in a group.

Returns:

Appropriate output port place.

Return type:

openvino.frontend.Place

get_producing_operation(self: openvino._pyopenvino.Place, input_name: object = None, input_port_index: object = None) openvino._pyopenvino.Place#

Get an operation node place that immediately produces data for this place.

Parameters:
  • input_name (str) – Name of port group. May not be set if node has one input port group.

  • input_port_index (int) – If a given place is itself an operation node, this specifies a port index. May not be set if place has only one input port.

Returns:

An operation place that produces data for this place.

Return type:

openvino.frontend.Place

get_producing_port(self: openvino._pyopenvino.Place) openvino._pyopenvino.Place#

Returns a port that produces data for this place.

Returns:

A port place that produces data for this place.

Return type:

openvino.frontend.Place

get_source_tensor(self: openvino._pyopenvino.Place, input_name: object = None, input_port_index: object = None) openvino._pyopenvino.Place#

Returns a tensor place that supplies data for this place; applicable for operations, input ports and input edges.

:param input_name : Name of port group. May not be set if node has one input port group. :type input_name: str :param input_port_index: Input port index for operational node. May not be specified if place has only one input port. :type input_port_index: int :return: A tensor place which supplies data for this place. :rtype: openvino.frontend.Place

get_target_tensor(self: openvino._pyopenvino.Place, output_name: object = None, output_port_index: object = None) openvino._pyopenvino.Place#

Returns a tensor place that gets data from this place; applicable for operations, output ports and output edges.

Parameters:
  • output_name (str) – Name of output port group. May not be set if node has one output port group.

  • output_port_index (int) – Output port index if the current place is an operation node and has multiple output ports. May not be set if place has only one output port.

Returns:

A tensor place which hold the resulting value for this place.

Return type:

openvino.frontend.Place

is_equal(self: openvino._pyopenvino.Place, other: openvino._pyopenvino.Place) bool#

Returns true if another place is the same as this place.

Parameters:

other (openvino.frontend.Place) – Another place object.

Returns:

True if another place is the same as this place.

Return type:

bool

is_equal_data(self: openvino._pyopenvino.Place, other: openvino._pyopenvino.Place) bool#

Returns true if another place points to the same data. Note: The same data means all places on path:

output port -> output edge -> tensor -> input edge -> input port.

Parameters:

other (openvino.frontend.Place) – Another place object.

Returns:

True if another place points to the same data.

Return type:

bool

is_input(self: openvino._pyopenvino.Place) bool#

Returns true if this place is input for a model.

Returns:

True if this place is input for a model

Return type:

bool

is_output(self: openvino._pyopenvino.Place) bool#

Returns true if this place is output for a model.

Returns:

True if this place is output for a model.

Return type:

bool