openvino.VASurfaceTensor

class openvino.VASurfaceTensor

Bases: openvino._pyopenvino.RemoteTensor

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

get_byte_size(self)

Gets Tensor's size in bytes.

get_device_name(self)

get_element_type(self)

Gets Tensor's element type.

get_params(self)

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

data

element_type

Tensor's element type.

plane_id

shape

Tensor's shape get/set.

size

Tensor's size as total number of elements.

str_data

strides

Tensor's strides in bytes.

surface_id

__class__

alias of pybind11_builtins.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.VASurfaceTensor) 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
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
property data
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
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]
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

property plane_id
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
property strides

Tensor’s strides in bytes.

Return type

openvino.runtime.Strides

property surface_id