openvino.RemoteTensor#

class openvino.RemoteTensor#

Bases: Tensor

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

copy_from(*args, **kwargs)

Overloaded function.

copy_to(self, arg0)

This method is not implemented.

get_byte_size(self)

Gets Tensor's size in bytes.

get_device_name(self)

Returns name of a device on which the tensor is allocated.

get_element_type(self)

Gets Tensor's element type.

get_params(self)

Returns a dict of device-specific parameters required for low-level operations with the underlying tensor.

get_shape(self)

Gets Tensor's shape.

get_size(self)

Gets Tensor's size as total number of elements.

get_strides(self)

Gets Tensor's strides in bytes.

is_continuous(self)

Reports whether the tensor is continuous or not.

set_shape(*args, **kwargs)

Overloaded function.

Attributes

byte_size

Tensor's size in bytes.

bytes_data

This property is not implemented.

data

This property is not implemented.

element_type

Tensor's element type.

shape

Tensor's shape get/set.

size

Tensor's size as total number of elements.

str_data

This property is not implemented.

strides

Tensor's strides in bytes.

__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__(self: openvino._pyopenvino.RemoteTensor) 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).

property byte_size#

Tensor’s size in bytes.

Return type:

int

property bytes_data#

This property is not implemented.

copy_from(*args, **kwargs)#

Overloaded function.

  1. copy_from(self: openvino._pyopenvino.Tensor, source: openvino._pyopenvino.Tensor) -> None

    Copy source tensor’s data to this tensor. Tensors should have the same element type and shape.

  2. copy_from(self: openvino._pyopenvino.Tensor, source: numpy.ndarray) -> None

    Copy the source to this tensor. This tensor and the source should have the same element type. Shape will be adjusted if there is a mismatch.

  3. copy_from(self: openvino._pyopenvino.Tensor, source: list) -> None

    Copy the source to this tensor. This tensor and the source should have the same element type. Shape will be adjusted if there is a mismatch.

copy_to(self: openvino._pyopenvino.RemoteTensor, arg0: object) None#

This method is not implemented.

property data#

This property is not implemented.

property element_type#

Tensor’s element type.

Return type:

openvino.runtime.Type

get_byte_size(self: openvino._pyopenvino.Tensor) int#

Gets Tensor’s size in bytes.

Return type:

int

get_device_name(self: openvino._pyopenvino.RemoteTensor) str#

Returns name of a device on which the tensor is allocated.

Returns:

A device name string in fully specified format <device_name>[.<device_id>[.<tile_id>]].

Return type:

str

get_element_type(self: openvino._pyopenvino.Tensor) openvino._pyopenvino.Type#

Gets Tensor’s element type.

Return type:

openvino.runtime.Type

get_params(self: openvino._pyopenvino.RemoteTensor) Dict[str, openvino._pyopenvino.OVAny]#

Returns a dict of device-specific parameters required for low-level operations with the underlying tensor. Parameters include device/context/surface/buffer handles, access flags, etc. Content of the returned dict depends on remote execution context that is currently set on the device (working scenario).

Returns:

A dictionary of device-specific parameters.

Return type:

dict

get_shape(self: openvino._pyopenvino.Tensor) openvino._pyopenvino.Shape#

Gets Tensor’s shape.

Return type:

openvino.runtime.Shape

get_size(self: openvino._pyopenvino.Tensor) int#

Gets Tensor’s size as total number of elements.

Return type:

int

get_strides(self: openvino._pyopenvino.Tensor) openvino._pyopenvino.Strides#

Gets Tensor’s strides in bytes.

Return type:

openvino.runtime.Strides

is_continuous(self: openvino._pyopenvino.Tensor) bool#

Reports whether the tensor is continuous or not. :return: True if the tensor is continuous, otherwise False. :rtype: bool

set_shape(*args, **kwargs)#

Overloaded function.

  1. set_shape(self: openvino._pyopenvino.Tensor, arg0: openvino._pyopenvino.Shape) -> None

    Sets Tensor’s shape.

  2. set_shape(self: openvino._pyopenvino.Tensor, arg0: List[int]) -> None

    Sets Tensor’s shape.

property shape#

Tensor’s shape get/set.

property size#

Tensor’s size as total number of elements.

Return type:

int

property str_data#

This property is not implemented.

property strides#

Tensor’s strides in bytes.

Return type:

openvino.runtime.Strides